Skip to content

Commit 4dd6b4d

Browse files
author
Shyue Ping Ong
committed
Try to fix codecov workflow.
1 parent 219fbac commit 4dd6b4d

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -97,33 +97,20 @@ jobs:
9797
# pytest --store-durations --durations-path test_files/.pytest-split-durations
9898
# and commit the results (requires pip install pytest-split)
9999
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
101101
- name: Upload coverage
102102
uses: actions/upload-artifact@v3
103103
with:
104-
name: coverage-${{ matrix.split }}
105-
path: .coverage
104+
name: backend-coverage
105+
path: coverage.xml
106106

107107
coverage:
108108
needs: test
109109
runs-on: ubuntu-latest
110110
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
118111
- name: Download coverage artifacts
119112
continue-on-error: true
120113
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
127114
- name: Upload coverage reports to Codecov
128115
uses: codecov/codecov-action@v3
129116
env:

0 commit comments

Comments
 (0)