Skip to content

Commit 3fe43a6

Browse files
fixup
1 parent 4332f3d commit 3fe43a6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/CI.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)