Skip to content

Commit e61c495

Browse files
committed
chore: add codecov to CI
1 parent b0611f0 commit e61c495

3 files changed

Lines changed: 272 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,15 @@ 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.1.2
59+
with:
60+
token: ${{ secrets.CODECOV_TOKEN }}
61+
env_vars: OS,PYTHON
62+
fail_ci_if_error: true
63+
verbose: true
5764
release:
5865
runs-on: ubuntu-latest
5966
needs:

0 commit comments

Comments
 (0)