Skip to content

Commit

Permalink
Fixed coverage upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
redboltz committed Feb 21, 2025
1 parent 876a09b commit 765de1f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,15 @@ jobs:
cmake --build build --target all || exit 1
ctest --test-dir build || exit 1
- name: Upload coverage to Codecov
- name: Generate coverage
working-directory: build
run: |
# Create lcov report
lcov --capture --directory . --output-file coverage.info --ignore-errors mismatch
lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files
lcov --list coverage.info # debug info
# Uploading report to CodeCov
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: build/coverage.info
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 765de1f

Please sign in to comment.