From d743c0cdcd06af448acda0456a8cde14e799df62 Mon Sep 17 00:00:00 2001 From: tibvdm Date: Mon, 8 Apr 2024 13:50:43 +0200 Subject: [PATCH] coverage --- .github/workflows/coverage.yml | 23 +++++++++++++++++++++++ codecov.yml | 12 ++++++++++++ 2 files changed, 35 insertions(+) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 754f743..f120339 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -39,3 +39,26 @@ jobs: flags: fa-compression verbose: true fail_ci_if_error: true + + - name: Run cargo test (sa-mappings) + uses: actions-rs/cargo@v1 + with: + command: test + args: --all-features --no-fail-fast -p sa-mappings + env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' + RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' + + - name: Gather coverage information (sa-mappings) + id: coverage + uses: actions-rs/grcov@v0.1 + + - name: Upload coverage reports to Codecov (sa-mappings) + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ${{ steps.coverage.outputs.report }} + flags: sa-mappings + verbose: true + fail_ci_if_error: true diff --git a/codecov.yml b/codecov.yml index ec42d7c..030fcbe 100644 --- a/codecov.yml +++ b/codecov.yml @@ -7,6 +7,10 @@ coverage: target: 90% flags: - fa-compression + sa-mappings: + target: 90% + flags: + - sa-mappings patch: default: target: 90% @@ -14,9 +18,17 @@ coverage: target: 90% flags: - fa-compression + sa-mappings: + target: 90% + flags: + - sa-mappings flags: fa-compression: paths: - fa-compression carryforward: true + sa-mappings: + paths: + - sa-mappings + carryforward: true