Skip to content

Commit f47a5b9

Browse files
committed
chore(coverage.yml): rename job from 'tests' to 'coverage' for clarity
feat(coverage.yml): add --cov-report=xml flag to pytest command to generate coverage report in XML format for better integration with Codecov
1 parent 16969f4 commit f47a5b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Run tests
1+
name: Collect coverage and upload to Codecov
22
on:
33
push:
44
branches:
55
- master
66

77
jobs:
8-
tests:
8+
coverage:
99
runs-on: ubuntu-22.04
1010
steps:
1111
- uses: actions/checkout@v4
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install dependencies
2727
run: poetry install
2828
- name: Run tests and collect coverage
29-
run: poetry run pytest --cov .
29+
run: poetry run pytest --cov --cov-report=xml
3030
- name: Upload coverage raports to Codecov
3131
uses: codecov/codecov-action@v4.0.1
3232
with:

0 commit comments

Comments
 (0)