Skip to content

Commit 1ec03c6

Browse files
committed
chore: add codecov support
1 parent 19200dd commit 1ec03c6

File tree

3 files changed

+166
-1
lines changed

3 files changed

+166
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,15 @@ jobs:
4747
activate-environment: true
4848
- run: uv pip install pip
4949
- name: Test with Pytest
50-
run: uv run pytest --log-cli-level=DEBUG -vv -s
50+
run: uv run pytest --log-cli-level=DEBUG -vv -s --cov --cov-branch --cov-report=xml
5151
shell: bash
52+
- name: Upload results to Codecov
53+
uses: codecov/codecov-action@v5
54+
with:
55+
token: ${{ secrets.CODECOV_TOKEN }}
56+
slug: Python-roborock/python-roborock
57+
58+
5259

5360
build:
5461
name: Build Package

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ dev = [
5454
"pdoc>=15.0.4,<16",
5555
"pyyaml>=6.0.3",
5656
"pyshark>=0.6",
57+
"pytest-cov>=7.0.0",
5758
]
5859

5960
[tool.hatch.build.targets.sdist]

0 commit comments

Comments
 (0)