Skip to content

Commit

Permalink
Update codecov.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterTea authored May 2, 2024
1 parent 2ff796a commit 8aceb41
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,16 @@ jobs:
cmake -DCODE_COVERAGE=ON ../
make -j`nproc`
./et-test
lcov --capture --directory . --output-file coverage.info
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"
lcov --capture --directory . --output-file ../coverage.info
lcov --remove ../coverage.info '/usr/*' --output-file coverage.info # filter system-files
lcov --list ../coverage.info # debug info
popd
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./
fail_ci_if_error: true
files: ./coverage.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit 8aceb41

Please sign in to comment.