Skip to content

Commit

Permalink
try two different jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMarchand20 committed Aug 8, 2024
1 parent 5d31d7f commit edfc8f4
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,35 @@ jobs:
run: |
cd htool/
lcov --capture --base-directory ./ --directory build/ --output-file coverage.info
lcov --remove coverage.info '/usr/*' '*/hpddm/*' --output-file coverage.info
apt-get update
apt-get install -y --no-install-recommends gpg gpg-agent
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 edfc8f4

Please sign in to comment.