File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed
Expand file tree Collapse file tree 4 files changed +21
-2
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+
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 105105
106106# Vim
107107. * .swp
108+
109+ # Codecov
110+ * _cov.xml
Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ def check_dependencies(c):
2424
2525@task
2626def unit (c ):
27- c .run ('python -m pytest ./tests/unit --cov=ctgan --cov-report=xml' )
27+ c .run ('python -m pytest ./tests/unit --cov=ctgan --cov-report=xml:./unit_cov.xml ' )
2828
2929
3030@task
3131def integration (c ):
32- c .run ('python -m pytest ./tests/integration --reruns 3' )
32+ c .run ('python -m pytest ./tests/integration --reruns 3 --cov=ctgan --cov-report=xml:./integration_cov.xml ' )
3333
3434
3535@task
You can’t perform that action at this time.
0 commit comments