File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -97,33 +97,20 @@ jobs:
97
97
# pytest --store-durations --durations-path test_files/.pytest-split-durations
98
98
# and commit the results (requires pip install pytest-split)
99
99
run : |
100
- pytest --cov=pymatgen --splits 10 --group ${{ matrix.split }} --durations-path test_files/.pytest-split-durations tests
100
+ pytest --cov=pymatgen --cov-report=xml -- splits 10 --group ${{ matrix.split }} --durations-path test_files/.pytest-split-durations tests
101
101
- name : Upload coverage
102
102
uses : actions/upload-artifact@v3
103
103
with :
104
- name : coverage-${{ matrix.split }}
105
- path : . coverage
104
+ name : backend-coverage
105
+ path : coverage.xml
106
106
107
107
coverage :
108
108
needs : test
109
109
runs-on : ubuntu-latest
110
110
steps :
111
- - uses : actions/checkout@v3
112
- - name : Set up Python 3.10
113
- uses : actions/setup-python@v4
114
- with :
115
- python-version : " 3.10"
116
- - name : Install Coverage
117
- run : python -m pip install coverage
118
111
- name : Download coverage artifacts
119
112
continue-on-error : true
120
113
uses : actions/download-artifact@v3
121
- - name : Run coverage
122
- continue-on-error : true
123
- run : |
124
- coverage combine coverage*/.coverage*
125
- coverage report
126
- coverage xml
127
114
- name : Upload coverage reports to Codecov
128
115
uses : codecov/codecov-action@v3
129
116
env :
You can’t perform that action at this time.
0 commit comments