From c0a5d59788fd5258246b7a89ff4c135312ffe696 Mon Sep 17 00:00:00 2001 From: Nicola Busanello Date: Fri, 23 Feb 2024 00:25:04 +0100 Subject: [PATCH] fix grcov run --- .github/workflows/coverage.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index f2f71db..96e77c0 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -27,6 +27,7 @@ jobs: env: RUSTFLAGS: "-Cinstrument-coverage" RUSTDOCFLAGS: "-Cinstrument-coverage" + LLVM_PROFILE_FILE: "target/coverage/%p-%m.profraw" run: cargo test - name: Install grcov @@ -34,8 +35,8 @@ jobs: - name: Generate coverage report run: > - grcov . -s . --binary-path target/debug/ -t lcov --branch - --ignore-not-existing -o coverage.lcov + grcov target/coverage -s . --binary-path target/debug/ -t lcov --branch + --ignore 'target/*' --ignore 'tests/*' --ignore-not-existing -o coverage.lcov - name: Upload coverage report uses: codecov/codecov-action@v4