8000 Merge pull request #26130 from oscargus/lcovbranch · matplotlib/matplotlib@868004b · GitHub
[go: up one dir, main page]

Skip to content

Commit 868004b

Browse files
authored
Merge pull request #26130 from oscargus/lcovbranch
Enable branch coverage for C/C++ code
2 parents 503432a + 6b9ce11 commit 868004b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ jobs:
313313
314314
- name: Filter C coverage
315315
run: |
316-
lcov --capture --directory . --output-file coverage.info
317-
lcov --output-file coverage.info \
316+
lcov --rc lcov_branch_coverage=1 --capture --directory . --output-file coverage.info
317+
lcov --rc lcov_branch_coverage=1 --output-file coverage.info \
318318
--extract coverage.info $PWD/src/'*' $PWD/lib/'*'
319-
lcov --list coverage.info
319+
lcov --rc lcov_branch_coverage=1 --list coverage.info
320320
find . -name '*.gc*' -delete
321321
if: ${{ runner.os != 'macOS' }}
322322
- name: Upload code coverage

0 commit comments

Comments
 (0)
0