Skip to content

Commit

Permalink
ci: Update codecov-action to v2 API (#1623)
Browse files Browse the repository at this point in the history
* Update to codecov/codecov-action v2
   - c.f. https://github.com/codecov/codecov-action
   - Update `file` -> `files`
  • Loading branch information
matthewfeickert authored Oct 12, 2021
1 parent bc4b24a commit e47b1cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ jobs:
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
files: ./coverage.xml
flags: unittests

- name: Report core project coverage with Codecov (contributors)
# Run on pull_request events if PR comes from contributor fork
if: github.repository != 'scikit-hep/pyhf' && github.event_name == 'pull_request' && matrix.python-version == 3.9 && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml
files: ./coverage.xml
flags: unittests

- name: Test Contrib module with pytest
Expand All @@ -76,15 +76,15 @@ jobs:
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
files: ./coverage.xml
flags: contrib

- name: Report contrib coverage with Codecov (contributors)
# Run on pull_request events if PR comes from contributor fork
if: github.repository != 'scikit-hep/pyhf' && github.event_name == 'pull_request' && matrix.python-version == 3.9 && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml
files: ./coverage.xml
flags: contrib

- name: Run benchmarks
Expand Down

0 comments on commit e47b1cf

Please sign in to comment.