Skip to content

Commit fc2c11a

Browse files
Update CI workflow to enhance coverage reporting by adding error handling and upgrading Codecov action to version 5. This improves the robustness of the coverage generation process.
1 parent ef0834f commit fc2c11a

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,14 @@ jobs:
8686

8787
- name: Generate Coverage Report
8888
run: |
89-
lcov --capture --directory build --output-file coverage.info
90-
lcov --remove coverage.info '/usr/*' '*/tests/*' '*/external/*' '*/googletest/*' --output-file coverage.info
91-
lcov --list coverage.info
89+
lcov --capture --directory build --output-file coverage.info --ignore-errors mismatch
90+
lcov --remove coverage.info '/usr/*' '*/tests/*' '*/external/*' '*/googletest/*' --output-file coverage.info --ignore-errors mismatch
91+
lcov --list coverage.info --ignore-errors mismatch
9292
93-
- name: Upload to Codecov
94-
uses: codecov/codecov-action@v4
93+
- name: Upload coverage reports to Codecov
94+
uses: codecov/codecov-action@v5
9595
with:
96-
file: coverage.info
97-
fail_ci_if_error: false
98-
verbose: true
99-
env:
100-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
96+
token: ${{ secrets.CODECOV_TOKEN }}
10197

10298
macos:
10399
runs-on: macos-latest

0 commit comments

Comments
 (0)