diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a94936f..754f743 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -17,24 +17,25 @@ jobs: toolchain: nightly override: true - - name: Run cargo test + - name: Run cargo test (fa-compression) uses: actions-rs/cargo@v1 with: command: test - args: --all-features --no-fail-fast + args: --all-features --no-fail-fast -p fa-compression 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 + - name: Gather coverage information (fa-compression) id: coverage uses: actions-rs/grcov@v0.1 - - name: Upload coverage reports to Codecov + - name: Upload coverage reports to Codecov (fa-compression) uses: codecov/codecov-action@v4.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} file: ${{ steps.coverage.outputs.report }} + flags: fa-compression verbose: true fail_ci_if_error: true diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..f49eb98 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,15 @@ +coverage: + status: + project: + default: + target: 90% + fa-compression: + target: 90% + flags: + - fa-compression + +flags: + fa-compression: + paths: + - fa-compression + carryforward: true