Tentative fix for test coverage setup
This commit is contained in:
parent
d06ad07f51
commit
646f8297d2
1 changed files with 24 additions and 9 deletions
33
.github/workflows/coverage.yml
vendored
33
.github/workflows/coverage.yml
vendored
|
@ -16,16 +16,31 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Polaris
|
- name: Checkout Polaris
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
components: llvm-tools-preview
|
||||||
profile: minimal
|
- name: Install grcov
|
||||||
- name: Run Tarpaulin
|
run: cargo install grcov
|
||||||
uses: actions-rs/tarpaulin@v0.1
|
- name: Run tests
|
||||||
with:
|
run: cargo test --no-fail-fast
|
||||||
args: "--all-features --ignore-tests"
|
env:
|
||||||
out-type: Xml
|
RUSTFLAGS: "-Cinstrument-coverage"
|
||||||
timeout: 240
|
- name: Gather coverage results
|
||||||
|
run: >
|
||||||
|
grcov
|
||||||
|
.
|
||||||
|
-t lcov
|
||||||
|
-o coverage.txt
|
||||||
|
--llvm
|
||||||
|
--branch
|
||||||
|
--ignore-not-existing
|
||||||
|
--excl-line "#\[derive\("
|
||||||
|
--excl-br-line "#\[derive\("
|
||||||
|
--excl-start "mod tests \{"
|
||||||
|
--excl-br-start "mod tests \{"
|
||||||
- name: Upload Results
|
- name: Upload Results
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v2
|
||||||
with:
|
with:
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
|
verbose: true
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue