This is an automated email from the ASF dual-hosted git repository.
liurenjie1024 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git
The following commit(s) were added to refs/heads/main by this push:
new a7bd0105 ci: parallelize unit test with matrix (#1833)
a7bd0105 is described below
commit a7bd0105b1313600d508ef7b427e039b323da006
Author: Kevin Liu <[email protected]>
AuthorDate: Tue Nov 11 20:17:24 2025 -0800
ci: parallelize unit test with matrix (#1833)
---
.github/workflows/ci.yml | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d5473978..c0f360b9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -139,6 +139,13 @@ jobs:
unit:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ test-suite:
+ - { name: "default", args: "--all-targets --all-features
--workspace" }
+ - { name: "smol", args: "--all-targets --no-default-features
--features smol --features storage-all --workspace" }
+ - { name: "doc", args: "--doc --all-features --workspace" }
+ name: Unit Tests (${{ matrix.test-suite.name }})
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
@@ -163,15 +170,11 @@ jobs:
- name: Cache Rust artifacts
uses: Swatinem/rust-cache@v2
+ with:
+ key: ${{ matrix.test-suite.name }}
- name: Test
- run: cargo test --no-fail-fast --all-targets --all-features --workspace
-
- - name: Smol Test
- run: cargo test --no-fail-fast --all-targets --no-default-features
--features "smol" --features "storage-all" --workspace
-
- - name: Doc Test
- run: cargo test --no-fail-fast --doc --all-features --workspace
+ run: cargo test --no-fail-fast ${{ matrix.test-suite.args }}
msrv:
name: Verify MSRV