Skip to content

Commit 2ec8197

Browse files
m4txseqre
andauthored
ci: don't run ignored doctests in coverage tests (#447)
Co-authored-by: Marek Grzelak <git@seqre.dev>
1 parent 2c019bb commit 2ec8197

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,17 @@ jobs:
228228
uses: taiki-e/install-action@cargo-llvm-cov
229229

230230
- name: Generate code coverage
231-
run: cargo llvm-cov --all-features --workspace --branch --doctests --codecov --output-path codecov.json -- --include-ignored
231+
run: cargo llvm-cov --all-features --workspace --branch --no-report -- --include-ignored
232+
233+
- name: Generate code coverage - doctests
234+
run: cargo llvm-cov --all-features --workspace --branch --doc --no-report
235+
236+
- name: Merge code coverage reports
237+
run: cargo llvm-cov report --codecov --output-path codecov.json
232238

233239
- uses: codecov/codecov-action@v5
234240
with:
235-
files: coverage.json
241+
files: codecov.json
236242
flags: rust
237243
fail_ci_if_error: true
238244
env:

0 commit comments

Comments
 (0)