File tree Expand file tree Collapse file tree 4 files changed +21
-5
lines changed
Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 2929 python -m pip install invoke .[test]
3030 - name : Run end to end tests
3131 run : invoke end-to-end
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- - 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 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 114114
115115# tutorials
116116tutorials /mymodel.pkl
117+
118+ # Codecov
119+ * _cov.xml
Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ def check_dependencies(c):
3434
3535@task
3636def unit (c ):
37- c .run ('python -m pytest ./tests/unit --cov=copulas --cov-report=xml' )
37+ c .run ('python -m pytest ./tests/unit --cov=copulas --cov-report=xml:./unit_cov.xml ' )
3838
3939
4040@task
4141def end_to_end (c ):
42- c .run ('python -m pytest ./tests/end-to-end --reruns 3' )
42+ c .run ('python -m pytest ./tests/end-to-end --reruns 3 --cov=copulas --cov-report=xml:./integration_cov.xml ' )
4343
4444
4545@task
You can’t perform that action at this time.
0 commit comments