Skip to content

Commit ac7cae4

Browse files
authored
ci: Only upload to codecov once (#774)
* ci: Only upload to codecov once * ci: Checkout before uploading coverage so reports are linked to commits --------- Co-authored-by: Dylan Anthony <[email protected]>
1 parent 4823d96 commit ac7cae4

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/checks.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,26 @@ jobs:
6666

6767
- name: Generate coverage report
6868
shell: bash
69-
run: poetry run coverage xml
69+
run: poetry run coverage xml -o coverage-${{ matrix.os }}-${{ matrix.python }}.xml
7070

71+
- name: Store coverage report
72+
uses: actions/upload-artifact@v3
73+
with:
74+
name: coverage-report
75+
path: coverage-${{ matrix.os }}-${{ matrix.python }}.xml
76+
77+
upload_coverage:
78+
needs: test
79+
runs-on: ubuntu-latest
80+
steps:
81+
- uses: actions/checkout@v3
82+
- name: Download coverage reports
83+
uses: actions/download-artifact@v3
84+
with:
85+
name: coverage-report
7186
- uses: codecov/codecov-action@v3
7287
with:
73-
files: ./coverage.xml
88+
files: "*.xml"
7489

7590
integration:
7691
name: Integration Tests
@@ -124,3 +139,5 @@ jobs:
124139
run: |
125140
cd integration-tests
126141
poetry run pytest
142+
143+

0 commit comments

Comments
 (0)