File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,15 @@ jobs:
38
38
- name : Install dependencies
39
39
run : |
40
40
python -m pip install --upgrade pip
41
- pip install codecov tox
41
+ pip install tox
42
42
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
44
44
- name : Unittests with tox
45
45
run : tox -e py
46
46
47
47
# Coverage does not work for private repos
48
48
- 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
Original file line number Diff line number Diff line change 9
9
commands =
10
10
coverage erase
11
11
coverage run -m pytest -svv {posargs:test}
12
- coverage report
12
+ coverage report -m
13
+ coverage xml -o coverage.xml
You can’t perform that action at this time.
0 commit comments