diff --git a/.github/workflows/my_codecov.yml b/.github/workflows/my_codecov.yml index b0d1c168e..66e71e0bd 100644 --- a/.github/workflows/my_codecov.yml +++ b/.github/workflows/my_codecov.yml @@ -10,6 +10,10 @@ name: My Codecov 3 jobs: test: name: Test + strategy: + fail-fast: false + matrix: + feature: [ libp2p, "libp2p,mixnet" ] env: RUSTFLAGS: -C instrument-coverage runs-on: ubuntu-latest @@ -35,14 +39,19 @@ jobs: run: cargo binstall -y cargo-risczero && cargo risczero install env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: | + - name: Run tests + uses: actions-rs/cargo@v1 + env: + RISC0_DEV_MODE: true + CONSENSUS_SLOT_TIME: 5 + with: + command: test + args: --all --no-default-features --features ${{ matrix.feature }} + - name: Run Grcov + run: | cargo binstall -y grcov; - CARGO_INCREMENTAL=0 cargo test --no-default-features --features libp2p mkdir /tmp/cov; grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov; - env: - SLOW_TEST_ENV: true - RISC0_DEV_MODE: true - uses: actions/upload-artifact@v3 if: failure() with: