Skip to content

Commit

Permalink
Collect coverage from doctests too
Browse files Browse the repository at this point in the history
Signed-off-by: FreezyLemon <[email protected]>
  • Loading branch information
FreezyLemon committed Aug 7, 2024
1 parent 44ccdb9 commit 4f42f27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview

Expand All @@ -28,7 +28,8 @@ jobs:
- name: Collect coverage
run: |
cargo llvm-cov --no-report nextest
cargo llvm-cov report --lcov --output-path lcov.info
cargo llvm-cov --no-report --doc
cargo llvm-cov report --doctests --lcov --output-path lcov.info
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 4f42f27

Please sign in to comment.