Skip to content

Commit

Permalink
Merge pull request #33 from redboltz/refine_cov
Browse files Browse the repository at this point in the history
Added no-external flag for coverage.
  • Loading branch information
redboltz authored Jun 20, 2023
2 parents b270412 + c172344 commit a3f93da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/gha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ jobs:
working-directory: ${{ runner.temp }}
run: |
export PATH="/usr/local/opt/llvm/bin:$PATH"
lcov --capture --directory ${{ runner.temp }} --output-file coverage.info --ignore-errors gcov,source --gcov-tool ${{ github.workspace }}/llvm-gcov.sh
lcov --list coverage.info # debug info
lcov --remove coverage.info '/usr/*' '/home/runner/work/async_mqtt/async_mqtt/usr/*' '/home/runner/work/async_mqtt/async_mqtt/test/*' --output-file coverage.info # filter system-files
lcov --list coverage.info # debug info
lcov --capture --directory ${{ runner.temp }} --exclude "/usr/*" -exclude "test/*" --output-file coverage.info --gcov-tool ${{ github.workspace }}/llvm-gcov.sh --ignore-errors inconsistent,gcov
lcov --list coverage.info --ignore-errors inconsistent # debug info
- name: Upload coverage to Codecov
if: matrix.pattern == 3
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit a3f93da

Please sign in to comment.