File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -174,8 +174,17 @@ jobs:
174174 - name : Generate coverage reports
175175 if : matrix.CODE_COVERAGE == 'ON'
176176 run : |
177- lcov --ignore-errors mismatch --capture --base-directory ./ --directory build/ --output-file coverage.info
178- lcov --remove coverage.info '/usr/*' '*/hpddm/*' '*/pybind11/*' '*/lib/htool/*' --output-file ../coverage.info
177+ # Capture coverage: both MPI (.gcda in /tmp/gcov-mpi) and serial (.gcda in build/)
178+ lcov --ignore-errors mismatch \
179+ --capture \
180+ --base-directory ./ \
181+ --directory build \
182+ --directory $COVDIR \
183+ --output-file coverage.info
184+
185+ # Exclude third-party and system paths
186+ lcov --remove coverage.info '/usr/*' '*/hpddm/*' '*/pybind11/*' '*/lib/htool/*' \
187+ --output-file ../coverage.info
179188
180189 - uses : actions/upload-artifact@v4
181190 with :
You can’t perform that action at this time.
0 commit comments