Skip to content

Commit 3928280

Browse files
authored
chore: add codecov support (#646)
1 parent 19200dd commit 3928280

File tree

4 files changed

+170
-1
lines changed

4 files changed

+170
-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

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
</a>
77
<img src="https://img.shields.io/pypi/pyversions/python-roborock.svg?style=flat-square&logo=python&amp;logoColor=fff" alt="Supported Python versions">
88
<img src="https://img.shields.io/pypi/l/python-roborock.svg?style=flat-square" alt="License">
9+
<a href="https://codecov.io/github/Python-roborock/python-roborock" >
10+
<img src="https://codecov.io/github/Python-roborock/python-roborock/graph/badge.svg?token=KEK4S3FPSZ" alt="Code Coverage"/>
11+
</a>
912
</p>
1013

14+
1115
Roborock library for online and offline control of your vacuums.
1216

1317
## Installation

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)