From e47b1cf0ce8188ebd90130b2b478ab6b909282e8 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Tue, 12 Oct 2021 15:51:56 -0500 Subject: [PATCH] ci: Update codecov-action to v2 API (#1623) * Update to codecov/codecov-action v2 - c.f. https://github.com/codecov/codecov-action - Update `file` -> `files` --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67ae0645bb..631a62a69c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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