Skip to content

Commit

Permalink
Add coverage upload. (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR authored Feb 5, 2025
1 parent 259dde0 commit 2fd175e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
- name: tox
run: |
tox -e `python -c "import sys; print('py' + ''.join(sys.version.split('.')[:2]))"`
- name: Upload coverage report
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

check:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ envlist = py38, py39, py310, py311, py312
deps =
-rrequirements-dev.txt
commands =
py.test --cov-report=term --cov-report= --cov=extruct {posargs:extruct tests}
py.test --cov-report=term --cov-report= --cov-report=xml --cov=extruct {posargs:extruct tests}

[testenv:py39]
commands =
py.test --cov-report=term --cov-report= --cov=extruct {posargs:extruct tests}
py.test --cov-report=term --cov-report= --cov-report=xml --cov=extruct {posargs:extruct tests}
python -m readme_renderer README.rst -o /tmp/README.html

[testenv:linters]
Expand Down

0 comments on commit 2fd175e

Please sign in to comment.