Skip to content

Commit

Permalink
Run gcovr
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon0402 authored Sep 29, 2023
1 parent 51f0501 commit fb66c95
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ jobs:
source /opt/ros/humble/setup.bash && source ./install/local_setup.bash
colcon test-result --verbose --all
- name: Run code coverage
run: |
gcovr --exclude-unreachable-branches --exclude-throw-branches -r . --filter src/ --exclude '.*tests/' --xml ${{github.workspace}}/build/coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ${{github.workspace}}/build/coverage.xml
fail_ci_if_error: true

0 comments on commit fb66c95

Please sign in to comment.