CI: fix coverage job

This commit is contained in:
Adam Turner
2022-05-02 18:11:19 +01:00
parent 8e726db3de
commit 00324a566b

View File

@@ -61,8 +61,6 @@ jobs:
# only run on pushes to branches in the sphinx-doc/sphinx repo
if: github.repository_owner == 'sphinx-doc' && github.event_name == 'push'
runs-on: ubuntu-latest
env:
PYTEST_ADDOPTS: "--cov ./ --cov-append --cov-config setup.cfg"
steps:
- uses: actions/checkout@v3
@@ -78,10 +76,12 @@ jobs:
run: sudo apt-get install graphviz
- name: Install dependencies
run: python -m pip install -U tox pip codecov pytest-cov
run: python -m pip install -U pip tox pytest-cov
- name: Run Tox
run: tox -e py -- -vv
run: tox --sitepackages -e py -- -vv
env:
PYTEST_ADDOPTS: "--cov ./ --cov-append --cov-config setup.cfg"
- name: codecov
uses: codecov/codecov-action@v3