Skip to content

Commit 85170bf

Browse files
committed
build: two-step combines for speed
1 parent 1605f07 commit 85170bf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/coverage.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ jobs:
9595
set -xe
9696
python -m tox
9797
98+
- name: "Combine data"
99+
env:
100+
COVERAGE_RCFILE: "metacov.ini"
101+
run: |
102+
python -m coverage combine
103+
mv .metacov .metacov.${{ matrix.python-version }}.${{ matrix.os }}
104+
98105
- name: "Upload coverage data"
99106
uses: actions/upload-artifact@v3
100107
with:
@@ -174,10 +181,9 @@ jobs:
174181
echo "url=https://nedbat.github.io/coverage-reports/$REPORT_DIR" >> $GITHUB_ENV
175182
echo "branch=${REF#refs/heads/}" >> $GITHUB_ENV
176183
177-
- name: "Create summary"
184+
- name: "Summarize"
178185
run: |
179186
echo '### Total coverage: ${{ env.total }}%' >> $GITHUB_STEP_SUMMARY
180-
echo '[${{ env.url }}](${{ env.url }})' >> $GITHUB_STEP_SUMMARY
181187
182188
- name: "Checkout reports repo"
183189
if: ${{ github.ref == 'refs/heads/master' }}
@@ -220,6 +226,7 @@ jobs:
220226
git add ${{ env.report_dir }} latest.html
221227
git commit --file=../commit.txt
222228
git push
229+
echo '[${{ env.url }}](${{ env.url }})' >> $GITHUB_STEP_SUMMARY
223230
224231
- name: "Create badge"
225232
if: ${{ github.ref == 'refs/heads/master' }}

0 commit comments

Comments
 (0)