Skip to content

Commit c6c41fc

Browse files
committed
Update actions workflow
1 parent e4dae6e commit c6c41fc

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ jobs:
3838
- name: Install dependencies
3939
run: |
4040
python -m pip install --upgrade pip
41-
pip install codecov tox
41+
pip install tox
4242
43-
# with "-e py" tox runs the python version of the current environment
43+
# with '-e py' tox runs the python version of the current environment
4444
- name: Unittests with tox
4545
run: tox -e py
4646

4747
# Coverage does not work for private repos
4848
- name: Upload coverage to Codecov
49-
run: codecov
49+
uses: codecov/codecov-action@v3
50+
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
51+
with:
52+
files: ./coverage.xml # optional

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ deps =
99
commands =
1010
coverage erase
1111
coverage run -m pytest -svv {posargs:test}
12-
coverage report
12+
coverage report -m
13+
coverage xml -o coverage.xml

0 commit comments

Comments
 (0)