Skip to content

Commit 63087d5

Browse files
committed
CI: Only measure coverage for tests.
Don't measure coverage for doctests, bins, benchmarks, etc. This works around a failure to build doctests in the coverage jobs which is probably caused by a compatibility-breaking change in Rust's new doctest-xcompile feature and/or its doctest bundling feature.
1 parent 2a430d1 commit 63087d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ jobs:
815815

816816
- if: ${{ !contains(matrix.host_os, 'windows') }}
817817
run: |
818-
RING_CPU_MODEL=${{ matrix.cpu_model }} RING_COVERAGE=1 mk/cargo.sh +${{ matrix.rust_channel }} test -vv --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}
818+
RING_CPU_MODEL=${{ matrix.cpu_model }} RING_COVERAGE=1 mk/cargo.sh +${{ matrix.rust_channel }} test --lib --tests -vv --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}
819819
820820
- uses: briansmith/codecov-codecov-action@v4
821821
with:

0 commit comments

Comments
 (0)