From ff42039ee6d466df10ddb3368182fa6a2061f670 Mon Sep 17 00:00:00 2001 From: Pip Liggins Date: Thu, 28 Nov 2024 14:10:37 +0000 Subject: [PATCH] Update codecov upload --- .github/workflows/tests.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f7923eb..e9c5e65 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,7 +41,9 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - python3 -m pytest --cov - - name: Upload coverage to Codecov + python3 -m pytest --cov --cov-report=xml + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 if: matrix.python-version == 3.10 - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }}