From 53f498195ac4b48263e0465c47ff2575fe9e577d Mon Sep 17 00:00:00 2001 From: Derrick Chambers Date: Tue, 30 Apr 2024 09:03:35 -0600 Subject: [PATCH] update codecov action --- .github/workflows/get_coverage.yml | 11 +++++------ .github/workflows/runtests.yml | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/get_coverage.yml b/.github/workflows/get_coverage.yml index 50a66ad2..64f1a17e 100644 --- a/.github/workflows/get_coverage.yml +++ b/.github/workflows/get_coverage.yml @@ -37,11 +37,10 @@ jobs: run: | pytest -s --cov dascore --cov-report=xml - - name: upload coverage - uses: codecov/codecov-action@v2 + - uses: codecov/codecov-action@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} - file: ./coverage.xml - flags: unittests - name: master_tests fail_ci_if_error: true + files: ./coverage.xml + flags: unittests # optional + name: master_tests # optional + token: ${{ secrets.CODECOV_TOKEN }} # required diff --git a/.github/workflows/runtests.yml b/.github/workflows/runtests.yml index 2cb9e04d..e4e5b47c 100644 --- a/.github/workflows/runtests.yml +++ b/.github/workflows/runtests.yml @@ -113,14 +113,13 @@ jobs: shell: bash -l {0} run: ./.github/test_code.sh doctest - # upload coverage - - name: upload coverage - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: - file: ./coverage.xml - flags: unittests - name: PR_tests fail_ci_if_error: false + files: ./coverage.xml + flags: unittests # optional + name: PR_tests # optional + token: ${{ secrets.CODECOV_TOKEN }} # required # This is a very useful step for debugging, it allows you to ssh into the CI # machine (https://github.com/marketplace/actions/debugging-with-tmate).