Skip to content

Commit 1b25e47

Browse files
committed
Include doctests for code coverage
1 parent ecfad9e commit 1b25e47

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/codecov.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
CARGO_TERM_COLOR: always
1313
steps:
1414
- uses: actions/checkout@v3
15-
- name: Install Rust
16-
run: rustup update stable
15+
# nightly is required for --doctests, see cargo-llvm-cov#2
16+
- name: Install Rust (nightly)
17+
run: rustup update nightly
1718
- name: Install cargo-llvm-cov
1819
uses: taiki-e/install-action@cargo-llvm-cov
1920
- name: Generate code coverage
20-
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
21+
run: cargo +nightly llvm-cov --all-features --workspace --lcov --doctests --output-path lcov.info
2122
- name: Upload coverage to Codecov
2223
uses: codecov/codecov-action@v3
2324
env:

0 commit comments

Comments
 (0)