Skip to content

Commit cb1801d

Browse files
committed
ci: don't run ignored doctests in coverage tests
1 parent 906c6cb commit cb1801d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/rust.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,14 @@ jobs:
224224
uses: taiki-e/install-action@cargo-llvm-cov
225225

226226
- name: Generate code coverage
227-
run: cargo llvm-cov --all-features --workspace --branch --doctests --codecov --output-path codecov.json -- --include-ignored
227+
run: cargo llvm-cov --all-features --workspace --branch --codecov --output-path codecov.json -- --include-ignored
228+
229+
- name: Generate code coverage - doctests
230+
run: cargo llvm-cov --all-features --workspace --branch --doc --codecov --output-path codecov-doctests.json
228231

229232
- uses: codecov/codecov-action@v5
230233
with:
231-
files: coverage.json
234+
files: codecov.json codecov-doctests.json
232235
flags: rust
233236
fail_ci_if_error: true
234237
env:

0 commit comments

Comments
 (0)