Skip to content

Commit

Permalink
Tweak coverage parameters
Browse files Browse the repository at this point in the history
* Remove doc-tests coverage, as we then lose the report on covered lines
  in source files by coveralls
* Exclude the module `asynch` as it is mostly tested by doc-tests, to
  ease maintainability and limit duplicated code.
  • Loading branch information
cljoly committed Mar 19, 2023
1 parent 74b2d0c commit f3c45cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,14 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
toolchain: stable
override: true
components: llvm-tools
- uses: Swatinem/rust-cache@v1
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo +nightly llvm-cov --all-features --doctests --workspace --lcov --output-path lcov.info
run: cargo llvm-cov --workspace --all-features --lcov --output-path lcov.info --ignore-filename-regex asynch.rs
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v1
with:
Expand Down

0 comments on commit f3c45cd

Please sign in to comment.