Skip to content

Commit 4686095

Browse files
committed
chore: Add codecov to CI
1 parent b0611f0 commit 4686095

File tree

3 files changed

+269
-2
lines changed

3 files changed

+269
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ jobs:
5252
run: poetry install
5353
shell: bash
5454
- name: Test with Pytest
55-
run: poetry run pytest
55+
run: poetry run pytest --cov=roborock --cov-branch --cov-report=xml
5656
shell: bash
57+
- name: Upload coverage reports to Codecov
58+
uses: codecov/codecov-action@v5
59+
with:
60+
token: ${{ secrets.CODECOV_TOKEN }}
5761
release:
5862
runs-on: ubuntu-latest
5963
needs:

0 commit comments

Comments
 (0)