File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,23 +69,23 @@ jobs:
6969 - name : Run tests with coverage
7070 working-directory : ${{ github.workspace }}/build
7171 run : |
72- # Run tests while collecting coverage
7372 ctest --output-on-failure --output-junit test_results.xml
7473
75- # Generate lcov report ONLY for OneStopParallel/ include
74+ # Capture coverage ONLY from include/
7675 lcov --capture --directory . \
7776 --output-file coverage.info \
7877 --ignore-errors empty,mismatch \
7978 --include '*/OneStopParallel/include/*'
8079
81- # Clean report (strip system + tests + apps if we want)
82- lcov --remove coverage.info '/usr/*' '*/tests/*' '*/apps/*' \
83- --output-file coverage.info
80+ # Remove unused warnings: this is the KEY fix
81+ lcov --ignore-errors unused,empty,mismatch --remove coverage.info '*/tests/*' '*/apps/*' --output-file coverage.info
82+
83+ # Optional: silence header template warnings
84+ geninfo --rc geninfo_unexecuted_blocks=1 coverage.info
8485
8586 # Generate HTML report
8687 genhtml coverage.info --output-directory coverage_html
8788
88-
8989 - name : Upload coverage artifacts
9090 uses : actions/upload-artifact@v4
9191 with :
You can’t perform that action at this time.
0 commit comments