Skip to content

Commit 8aa6be8

Browse files
committed
CI/Codecov report: ignore code marked "UNREACHABLE"
Code marked "UNREACHABLE" just artificially reduces our coverage numbers. Tell lcov about this (it would by default exclude lines containing "LCOV_EXCL_LINE" only). This changes the coverage reported at present by +0.12 percentage points.
1 parent 3f92fcb commit 8aa6be8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,9 @@ jobs:
700700
- name: Print ccache stats
701701
run: ccache -s
702702
- name: Run CTest and collect coverage statistics
703-
run: cmake --build build --target coverage -- -j2
703+
run: |
704+
echo "lcov_excl_line = UNREACHABLE" > ~/.lcovrc
705+
cmake --build build --target coverage -- -j2
704706
- name: Upload coverage statistics to Codecov
705707
uses: codecov/codecov-action@v2
706708
with:

0 commit comments

Comments
 (0)