Skip to content

Commit 739a158

Browse files
authored
Merge pull request #6606 from tautschnig/cleanup/lcov-unreachable
Cleanup coverage CI job
2 parents 8b1b869 + 8aa6be8 commit 739a158

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -699,15 +699,13 @@ jobs:
699699
run: cmake --build build -- -j2
700700
- name: Print ccache stats
701701
run: ccache -s
702-
- name: Run CTest
703-
run: cmake --build build --target coverage -- -j2
704-
- name: Collect coverage statistics
702+
- name: Run CTest and collect coverage statistics
705703
run: |
706-
lcov --capture --directory build --output-file lcov.info
707-
lcov --remove lcov.info '/usr/*' --output-file lcov.info
704+
echo "lcov_excl_line = UNREACHABLE" > ~/.lcovrc
705+
cmake --build build --target coverage -- -j2
708706
- name: Upload coverage statistics to Codecov
709707
uses: codecov/codecov-action@v2
710708
with:
711-
files: ./lcov.info
709+
files: build/html/coverage.info
712710
fail_ci_if_error: true
713711
verbose: true

0 commit comments

Comments
 (0)