File tree Expand file tree Collapse file tree 4 files changed +19
-5
lines changed
Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 2929 python -m pip install invoke .[test]
3030 - name : Run integration tests
3131 run : invoke integration
32- - if : matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8
33- name : Upload codecov report
34- uses : codecov/codecov-action@v2
32+
33+ - if : matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9
34+ name : Upload integration codecov report
35+ uses : codecov/codecov-action@v4
36+ with :
37+ flags : integration
38+ file : ' ./integration_cov.xml'
39+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 2929 python -m pip install invoke .[test]
3030 - name : Run unit tests
3131 run : invoke unit
32+
33+ - if : matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9
34+ name : Upload unit codecov report
35+ uses : codecov/codecov-action@v4
36+ with :
37+ flags : unit
38+ file : ' ./unit_cov.xml'
39+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ coverage.xml
4646* .cover
4747.hypothesis /
4848.pytest_cache /
49+ * _cov.xml
4950
5051# Translations
5152* .mo
Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ def check_dependencies(c):
3131
3232@task
3333def integration (c ):
34- c .run ('python -m pytest ./tests/integration --reruns 3 --cov=deepecho --cov-report=xml' )
34+ c .run ('python -m pytest ./tests/integration --reruns 3 --cov=deepecho --cov-report=xml:./unit_cov.xml ' )
3535
3636
3737@task
3838def unit (c ):
39- c .run ('python -m pytest ./tests/unit --reruns 3' )
39+ c .run ('python -m pytest ./tests/unit --reruns 3 --cov=deepecho --cov-report=xml:./integration_cov.xml ' )
4040
4141
4242def _get_minimum_versions (dependencies , python_version ):
You can’t perform that action at this time.
0 commit comments