Skip to content

Commit 23c98d7

Browse files
committed
chore(ci): Upload to codecov
1 parent b919a71 commit 23c98d7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/package.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,24 @@ jobs:
8686
ls -lR
8787
- name: Set up uv
8888
uses: astral-sh/setup-uv@v6
89-
- name: Install tox
89+
- name: Install tox and coverage
9090
run: |
9191
uv tool install tox --with=tox-uv
92+
uv tool install coverage[toml]
9293
- name: Run tox
9394
run: tox run-parallel -c bsmschema/tox.ini --exit-and-dump-after 60
95+
- name: Combine coverage
96+
run: |
97+
coverage combine
98+
coverage xml
99+
with:
100+
working-directory: bsmschema
101+
- name: Upload coverage reports to Codecov
102+
uses: codecov/codecov-action@v5
103+
with:
104+
token: ${{ secrets.CODECOV_TOKEN }}
105+
working-directory: bsmschema
106+
directory: bsmschema
94107

95108
publish:
96109
name: Publish package to PyPI

0 commit comments

Comments
 (0)