Skip to content

Commit 371b405

Browse files
committed
ci: fix coverage report not detected by codacy
1 parent 3bdec37 commit 371b405

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/coverage.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,20 @@ jobs:
2424
pip install -r src/requirements.txt
2525
pip install coveralls
2626
pip install pytest
27+
28+
- name: Generate Coverage Report
29+
run: |
30+
coverage run -m pytest tests/
31+
coverage xml
2732
28-
- name: Run Coverall
33+
- name: Upload Report to Coveralls
2934
env:
3035
PYTHONPATH: ./src
3136
GITHUB_TOKEN: ${{ secrets. GITHUB_TOKEN }}
32-
run: |
33-
coverage run -m pytest tests/
34-
coveralls
37+
run: coveralls
3538

36-
- name: Run Codacy Coverage Reporter
39+
- name: Upload Report to Codacy
3740
uses: codacy/[email protected]
3841
with:
3942
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
43+
coverage-reports: coverage.xml

0 commit comments

Comments
 (0)