Skip to content

Commit 30fa169

Browse files
committed
ci: Split codecov upload into separate job
1 parent ceaec9a commit 30fa169

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
jobs:
1111
test:
1212
runs-on: ubuntu-latest
13-
permissions:
14-
id-token: write
1513

1614
steps:
1715
- uses: actions/checkout@v4
@@ -24,6 +22,22 @@ jobs:
2422
uv pip install pytest-github-actions-annotate-failures
2523
- run: uv run robotpy coverage test
2624
- run: uv run coverage xml
25+
- uses: actions/upload-artifact@v4
26+
with:
27+
name: coverage-data
28+
path: '*coverage.*'
29+
include-hidden-files: true
30+
31+
report-coverage:
32+
needs: [test]
33+
runs-on: ubuntu-latest
34+
permissions:
35+
id-token: write
36+
37+
steps:
38+
- uses: actions/download-artifact@v4
39+
with:
40+
name: coverage-data
2741
- uses: codecov/codecov-action@v4
2842
with:
2943
use_oidc: true

0 commit comments

Comments
 (0)