From 819cdfd9d89b1c20fe68d5631815a99fbffa12d0 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Fri, 8 Apr 2022 09:42:34 +0200 Subject: [PATCH] Don't run doctests for coverage --- .github/workflows/check.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index b21ab30e5..d5911d825 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -255,18 +255,16 @@ jobs: uses: actions-rs/cargo@v1 with: command: test - args: --all-features --no-fail-fast --workspace + args: --all-features --no-fail-fast --workspace --tests env: CARGO_INCREMENTAL: '0' RUSTFLAGS: '-Cinstrument-coverage' - RUSTDOCFLAGS: "-Cpanic=abort -Cinstrument-coverage --persist-doctests ${{ github.workspace }}/target/debug/doctestbins" LLVM_PROFILE_FILE: "cargo-test-%p-%m.profraw" - name: Build grcov report run: | mkdir -p target/coverage grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/tests.lcov - grcov . --binary-path ./target/debug/doctestbins/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/doctests.lcov - name: Upload to codecov.io uses: codecov/codecov-action@v3