From eab1b1433925310fb695f009f28b491f197a3e1b Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Wed, 5 Feb 2025 17:46:38 +0500 Subject: [PATCH] Fix coverage upload. --- .github/workflows/test.yml | 5 +++-- tox.ini | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dc08012..54a3524 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,8 +39,9 @@ jobs: run: | tox -e ${{ matrix.toxenv || 'py' }} - name: coverage - if: ${{ success() }} - run: bash <(curl -s https://codecov.io/bash) + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} check: runs-on: ubuntu-latest diff --git a/tox.ini b/tox.ini index 2acb277..d861ff1 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ deps = commands = pip install -U pip pip install -e . - pytest --cov=html_text --cov-report=html --cov-report=term {env:PYTEST_DOC:} {posargs:.} + pytest --cov=html_text --cov-report=html --cov-report=xml --cov-report=term {env:PYTEST_DOC:} {posargs:.} [testenv:py39-parsel] setenv =