Skip to content

Commit

Permalink
Merge pull request #2761 from mrmundt/branch-codecov
Browse files Browse the repository at this point in the history
[CODECOV] Rework Upload of Coverage Reports
  • Loading branch information
jsiirola authored Mar 2, 2023
2 parents 837e47d + e8ba71a commit a47fa92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ jobs:
cover:
name: process-coverage-${{ matrix.TARGET }}
needs: build
if: always() # run even if a build job fails
if: ${{ false }} # turn off for branches
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
Expand Down Expand Up @@ -807,6 +807,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
files: coverage.xml
token: ${{ secrets.PYOMO_CODECOV_TOKEN }}
name: ${{ matrix.TARGET }}
flags: ${{ matrix.TARGET }}
fail_ci_if_error: true
Expand All @@ -818,6 +819,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
files: coverage-other.xml
token: ${{ secrets.PYOMO_CODECOV_TOKEN }}
name: ${{ matrix.TARGET }}/other
flags: ${{ matrix.TARGET }},other
fail_ci_if_error: true
2 changes: 2 additions & 0 deletions .github/workflows/test_pr_and_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
files: coverage.xml
token: ${{ secrets.PYOMO_CODECOV_TOKEN }}
name: ${{ matrix.TARGET }}
flags: ${{ matrix.TARGET }}
fail_ci_if_error: true
Expand All @@ -839,6 +840,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
files: coverage-other.xml
token: ${{ secrets.PYOMO_CODECOV_TOKEN }}
name: ${{ matrix.TARGET }}/other
flags: ${{ matrix.TARGET }},other
fail_ci_if_error: true

0 comments on commit a47fa92

Please sign in to comment.