Skip to content

Commit 0266e6a

Browse files
Generate coverage wth lcov
1 parent ac85474 commit 0266e6a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,18 @@ jobs:
108108
working-directory: ${{github.workspace}}/build
109109
run: ctest -C Debug --verbose -L channel_tests -j
110110

111+
- name: Generate coverage
112+
working-directory: ${{github.workspace}}/build
113+
run: |
114+
sudo apt-get install lcov -y
115+
lcov --capture --directory . --output-file coverage.info --rc geninfo_unexecuted_blocks=1 --ignore-errors mismatch
116+
lcov --remove coverage.info "*/usr/*" -o coverage.info
117+
111118
- name: Upload coverage reports to Codecov
112119
uses: codecov/codecov-action@v5
113120
with:
114121
token: ${{ secrets.CODECOV_TOKEN }}
122+
files: ${{github.workspace}}/build/coverage.info
115123

116124
clang-format:
117125
name: Clang Format

0 commit comments

Comments
 (0)