Skip to content

Commit 44a0911

Browse files
authored
Update coverage report generation in workflow
Remove example folder from coverage report.
1 parent ff68f4d commit 44a0911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/fpm-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ jobs:
104104
- run: | # Use fpm gnu ci to check xdp and qp
105105
python config/fypp_deployment.py --with_xdp --with_qp
106106
fpm test --profile release --flag '-DWITH_XDP -DWITH_QP -coverage'
107-
fpm run --example --profile release --flag '-DWITH_XDP -DWITH_QP -coverage'
108107
109108
- name: Create coverage report
110109
run: |
@@ -113,6 +112,7 @@ jobs:
113112
lcov --capture --initial --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.base --ignore-errors mismatch
114113
lcov --capture --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.capture --ignore-errors mismatch
115114
lcov --add-tracefile ${{ env.COV_DIR }}/coverage.base --add-tracefile ${{ env.COV_DIR }}/coverage.capture --output-file ${{ env.COV_DIR }}/coverage.info --ignore-errors mismatch
115+
lcov --remove ${{ env.COV_DIR }}/coverage.info '*/example/*' --output-file ${{ env.COV_DIR }}/coverage.info
116116
env:
117117
COV_DIR: build/coverage
118118

0 commit comments

Comments
 (0)