Skip to content

Commit f0bb920

Browse files
authored
filter standalone from codecov report
1 parent f0179ff commit f0bb920

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ubuntu.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
with:
2727
path: "**/cpm_modules"
2828
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
29+
30+
- name: install dependency
31+
run: sudo apt-get install lcov
32+
2933
- name: Add conda to system path
3034
run: |
3135
# $CONDA is an environment variable pointing to the root of the miniconda directory
@@ -48,4 +52,8 @@ jobs:
4852
ctest --build-config Debug
4953
5054
- name: collect code coverage
51-
run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
55+
run: |
56+
lcov --directory . --capture --output-file coverage.info # capture coverage info
57+
lcov --remove coverage.info '/usr/*' 'standalone/*' 'bench/*' --output-file coverage.info # filter out system
58+
lcov --list coverage.info #debug info
59+
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"

0 commit comments

Comments
 (0)