Skip to content

Commit 6a41be7

Browse files
committed
Combine coverage across Python versions, upload one file to codecov.
1 parent 380dcc3 commit 6a41be7

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,50 @@ jobs:
4848
env:
4949
COVERAGE_COVERAGE: "yes"
5050
run: |
51+
set -xe
5152
python -m tox
5253
python -m igor combine_html
54+
mv .metacov .coverage.${{ matrix.python-version }}
55+
56+
- name: "Upload coverage data"
57+
uses: actions/upload-artifact@v2
58+
with:
59+
name: metacov
60+
path: .coverage.*
61+
62+
combine:
63+
name: "Combine coverage data"
64+
needs: coverage
65+
runs-on: ubuntu-latest
66+
67+
steps:
68+
- name: "Check out the repo"
69+
uses: "actions/checkout@v2"
70+
71+
- name: "Set up Python"
72+
uses: "actions/setup-python@v2"
73+
with:
74+
python-version: "3.9"
75+
76+
- name: "Install dependencies"
77+
run: |
78+
set -xe
79+
python -VV
80+
python -m site
81+
python -m pip install -r requirements/ci.pip
82+
python setup.py --quiet clean develop
83+
python igor.py zip_mods install_egg
84+
85+
- name: "Download coverage data"
86+
uses: actions/download-artifact@v2
87+
with:
88+
name: metacov
89+
90+
- name: "Combine and report"
91+
run: |
92+
set -xe
93+
coverage combine
94+
coverage xml
5395
5496
- name: "Upload to codecov"
5597
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)