From 96bb47100629e6affbebd0b5097b27396a34ed3d Mon Sep 17 00:00:00 2001 From: Matteo Visconti di Oleggio Castello Date: Fri, 21 Jun 2024 18:17:46 -0400 Subject: [PATCH] MNT use codecov action with token (#543) --- .github/workflows/run_tests.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 7caa453d..e70ca67d 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -43,9 +43,13 @@ jobs: - name: Test with pytest run: | - pip install -q pytest pytest-cov codecov + pip install -q pytest pytest-cov pytest --cov=./ - - name: Run codecov - run: | - codecov + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + env_vars: OS,PYTHON + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} + verbose: false \ No newline at end of file