This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 31c9932a0 ci: Split unit and doc tests (#7064)
31c9932a0 is described below
commit 31c9932a00829fa5132f57cb22b88b8d2ec13a0a
Author: Xuanwo <[email protected]>
AuthorDate: Fri Dec 19 10:30:31 2025 +0800
ci: Split unit and doc tests (#7064)
---
.github/workflows/ci_core.yml | 44 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/.github/workflows/ci_core.yml b/.github/workflows/ci_core.yml
index 99262d0b7..68b3f8882 100644
--- a/.github/workflows/ci_core.yml
+++ b/.github/workflows/ci_core.yml
@@ -282,6 +282,50 @@ jobs:
working-directory: core
run: |
cargo nextest run --workspace --no-fail-fast --all-features
+ env:
+ # Add rocksdb and java lib path to LD_LIBRARY_PATH
+ LD_LIBRARY_PATH: /tmp/rocksdb/lib:${{ env.JAVA_HOME
}}/lib/server:${{ env.LD_LIBRARY_PATH }}
+
+ doc-test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: cleanup
+ run: |
+ sudo rm -rf \
+ /usr/share/dotnet \
+ /usr/local/lib/android \
+ /opt/ghc \
+ /opt/hostedtoolcache/CodeQL \
+ /usr/local/share/chromium \
+ /opt/microsoft \
+ /opt/google \
+ /usr/lib/firefox
+
+ sudo docker image prune --all --force
+ sudo docker builder prune -a
+ - uses: actions/checkout@v5
+ - name: Checkout python env
+ uses: actions/setup-python@v6
+ with:
+ python-version: "3.11"
+ - name: Checkout java env
+ uses: actions/setup-java@v5
+ with:
+ distribution: temurin
+ java-version: "11"
+
+ - name: Setup Rust toolchain
+ uses: ./.github/actions/setup
+ with:
+ need-protoc: true
+ need-rocksdb: true
+ need-foundationdb: true
+ need-nextest: true
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Test
+ working-directory: core
+ run: |
cargo test --workspace --doc --all-features
env:
# Add rocksdb and java lib path to LD_LIBRARY_PATH