Skip to content

Commit

Permalink
[#407] Ignore Parse Errors GCov
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbrown2 committed Jan 7, 2025
1 parent 11520be commit a3cd983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ jobs:
- name: Generate Coverage Report and Badges
run: |
mkdir -p docs/coverage
gcovr --branches --xml-pretty --exclude-unreachable-branches -o docs/coverage/coverage_report.xml
gcovr --branches --html --html-details -o docs/coverage/coverage_report.html
gcovr --gcov-ignore-parse-errors --branches --xml-pretty --exclude-unreachable-branches -o docs/coverage/coverage_report.xml
gcovr --gcov-ignore-parse-errors --branches --html --html-details -o docs/coverage/coverage_report.html
LINE_COVERAGE=$(grep -oP '(?<=<coverage line-rate=")[0-9.]+(?=")' docs/coverage/coverage_report.xml | head -n 1)
BRANCH_COVERAGE=$(grep -oP '(?<=branch-rate=")[0-9.]+(?=")' docs/coverage/coverage_report.xml | head -n 1)
LINE_COVERAGE_PERCENT=$(printf "%.0f" $(echo "$LINE_COVERAGE * 100" | bc))
Expand Down

0 comments on commit a3cd983

Please sign in to comment.