Skip to content

Commit b2c232b

Browse files
author
Pulkit-bristol
committed
Update CI: use pytest --cov with branch coverage and upgrade Codecov action to v5
1 parent de24054 commit b2c232b

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,18 +147,13 @@ jobs:
147147
- name: Install dependencies
148148
run: |
149149
uv sync --dev
150-
uv add --dev coverage[toml]
150+
uv add --dev pytest-cov
151151
152152
- name: Run tests with coverage
153153
run: |
154-
uv run coverage run -m pytest tests/
155-
uv run coverage report --show-missing
156-
uv run coverage xml
154+
uv run pytest --cov --cov-branch --cov-report=xml tests/
157155
158-
- name: Upload coverage to Codecov
159-
uses: codecov/codecov-action@v3
156+
- name: Upload coverage reports to Codecov
157+
uses: codecov/codecov-action@v5
160158
with:
161-
file: ./coverage.xml
162-
flags: unittests
163-
name: codecov-umbrella
164-
fail_ci_if_error: false
159+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)