diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 918b063..fc0cd13 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,14 +41,12 @@ jobs: coverage: name: coverage runs-on: ubuntu-latest - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 - run: python -m pip install --upgrade pip wheel - - run: pip install tox tox-gh-actions - - run: tox + - run: pip install tox tox-gh-actions pytest-cov codecov + - run: pytest --cov=./ --cov-report=xml - uses: codecov/codecov-action@v3 with: files: ./coverage.xml diff --git a/tox.ini b/tox.ini index a4dabca..91206d0 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ python = commands= python -m pip install -e . python -m pip install {env:QUART_VERSION:quart>=0.19.0} - python -m pytest -W ignore::DeprecationWarning -p no:logging --cov-branch --cov-report=term-missing --cov-report=xml + python -m pytest -W ignore::DeprecationWarning -p no:logging --cov=src --cov-report=term-missing --cov-report=xml deps= asgiref<3.7 pytest