From ce0596ee213a9d945224258fa9f32af517173d52 Mon Sep 17 00:00:00 2001 From: rymnc <43716372+rymnc@users.noreply.github.com> Date: Tue, 21 Jul 2026 16:57:49 +0530 Subject: [PATCH] ci: improve test process --- .github/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index caa98c0..d60d595 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,8 @@ on: env: CARGO_TERM_COLOR: always + # depth-2: pairwise powerset (~n^2/2) instead of 2^n + HACK_POWERSET_FLAGS: --feature-powerset --depth 2 jobs: fmt: @@ -31,11 +33,15 @@ jobs: - uses: taiki-e/install-action@v2 with: tool: cargo-hack - - run: cargo hack clippy --workspace --feature-powerset --ignore-unknown-features -- -D warnings + - run: cargo hack clippy --workspace ${{ env.HACK_POWERSET_FLAGS }} -- -D warnings test: - name: Test + name: Test (${{ matrix.partition }}/2) runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + partition: [1, 2] steps: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@1.95.0 @@ -43,4 +49,4 @@ jobs: - uses: taiki-e/install-action@v2 with: tool: cargo-hack,cargo-nextest - - run: cargo hack nextest run --workspace --feature-powerset --ignore-unknown-features + - run: cargo hack nextest run --workspace ${{ env.HACK_POWERSET_FLAGS }} --partition ${{ matrix.partition }}/2 --no-tests=pass