Skip to content

Commit 3fca429

Browse files
matthewfeickertlukasheinrich
authored andcommitted
fix: Correct order of Codecov reporting in CI (#711)
* Report coverage of src with Codecov before the coverage.xml is overwritten by testing pyhf.contrib - Amends PR #694 * Update Codecov GitHub Actions app to v1.0.5
1 parent ffd2e9e commit 3fca429

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ jobs:
4242
- name: Test with pytest
4343
run: |
4444
python -m pytest -r sx --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py
45-
- name: Test Contrib
46-
if: matrix.python-version != 2.7
47-
run: |
48-
python -m pytest -r sx tests/contrib --mpl --mpl-baseline-path tests/contrib/baseline
4945
- name: Report coverage with Codecov
5046
if: github.event_name == 'push' && matrix.python-version == 3.7 && matrix.os == 'ubuntu-latest'
51-
uses: codecov/codecov-action@v1.0.4
47+
uses: codecov/codecov-action@v1.0.5
5248
with:
5349
token: ${{ secrets.CODECOV_TOKEN }}
5450
file: ./coverage.xml
5551
flags: unittests
52+
- name: Test Contrib module with pytest
53+
if: matrix.python-version != 2.7
54+
run: |
55+
python -m pytest -r sx tests/contrib --mpl --mpl-baseline-path tests/contrib/baseline
5656
- name: Run benchmarks
5757
if: github.event_name == 'schedule' && matrix.python-version == 3.7
5858
run: |

0 commit comments

Comments
 (0)