Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMarchand20 committed Aug 9, 2024
1 parent 6f1da5a commit 67090ad
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,36 @@ jobs:
run: |
cd htool/
lcov --capture --base-directory ./ --directory build/ --output-file coverage.info
lcov --remove coverage.info '/usr/*' '*/hpddm/*' --output-file coverage.info
lcov --remove coverage.info '/usr/*' '*/hpddm/*' --output-file ../coverage.info
- name: Upload coverage to Codecov
- uses: actions/upload-artifact@v4
with:
path: coverage.info
if-no-files-found: error
if: matrix.CODE_COVERAGE == 'ON'
uses: codecov/codecov-action@v4.5.0

# - name: Upload coverage to Codecov
# if: matrix.CODE_COVERAGE == 'ON'
# uses: codecov/codecov-action@v4.5.0
# with:
# fail_ci_if_error: true
# files: htool/coverage.info
# token: ${{ secrets.CODECOV_TOKEN }}
# verbose: true

coverage:
runs-on: ubuntu-latest
if: ${{ success() }}
needs: [ linux ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
- name: Upload coverage report
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: htool/coverage.info
file: ./coverage.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit 67090ad

Please sign in to comment.