Skip to content

Commit 2fd175e

Browse files
authored
Add coverage upload. (#239)
1 parent 259dde0 commit 2fd175e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
- name: tox
3232
run: |
3333
tox -e `python -c "import sys; print('py' + ''.join(sys.version.split('.')[:2]))"`
34+
- name: Upload coverage report
35+
uses: codecov/codecov-action@v5
36+
with:
37+
token: ${{ secrets.CODECOV_TOKEN }}
3438

3539
check:
3640
runs-on: ubuntu-latest

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ envlist = py38, py39, py310, py311, py312
66
deps =
77
-rrequirements-dev.txt
88
commands =
9-
py.test --cov-report=term --cov-report= --cov=extruct {posargs:extruct tests}
9+
py.test --cov-report=term --cov-report= --cov-report=xml --cov=extruct {posargs:extruct tests}
1010

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

1616
[testenv:linters]

0 commit comments

Comments
 (0)