File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 51
51
shell : bash -l {0}
52
52
run : |
53
53
micromamba activate torchquad
54
- cd torchquad/tests
54
+ cd torchquad/tests/
55
55
pip install pytest
56
56
pip install pytest-error-for-skips
57
- pytest -ra --error-for-skips
57
+ pip install pytest-cov
58
+ pytest -ra --error-for-skips --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=../../torchquad . | tee pytest-coverage.txt
59
+ - name : pytest coverage comment
60
+ uses : MishaKav/pytest-coverage-comment@main
61
+ with :
62
+ pytest-coverage-path : ./torchquad/tests/pytest-coverage.txt
63
+ title : Coverage Report
64
+ badge-title : Overall Coverage
65
+ hide-badge : false
66
+ hide-report : false
67
+ create-new-comment : false
68
+ hide-comment : false
69
+ report-only-changed-files : false
70
+ junitxml-path : ./torchquad/tests/pytest.xml
Original file line number Diff line number Diff line change @@ -129,4 +129,6 @@ dmypy.json
129
129
.pyre /
130
130
131
131
my_notebooks
132
- .vscode
132
+ .vscode
133
+ pytest-coverage.txt
134
+ pytest.xml
You can’t perform that action at this time.
0 commit comments