File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,15 @@ jobs:
41
41
python -m pip install --upgrade pip
42
42
pip install --upgrade -r requirements-dev.txt
43
43
pip install .
44
- - name : Unit tests
44
+ - name : Test with pytest
45
45
run : |
46
- coverage run -m pytest
47
- coverage xml
46
+ pytest --cov --junitxml=junit.xml
48
47
- name : Upload coverage to Codecov
49
48
uses : codecov/codecov-action@v4
50
49
with :
51
- fail_ci_if_error : true # optional (default = false)
52
- name : codecov-umbrella # optional
53
- token : ${{ secrets.CODECOV_TOKEN }} # required
54
- verbose : true # optional (default = false)
50
+ token : ${{ secrets.CODECOV_TOKEN }}
51
+ - name : Upload test results to Codecov
52
+ if : ${{ !cancelled() }}
53
+ uses : codecov/test-results-action@v1
54
+ with :
55
+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 11
11
venv
12
12
.vscode
13
13
tests /* .ipynb
14
+ junit.xml
Original file line number Diff line number Diff line change 2
2
-r requirements.in
3
3
xmltodict >= 0.12.0
4
4
pytest
5
+ pytest-cov
5
6
coverage
6
7
py
7
8
flake8
You can’t perform that action at this time.
0 commit comments