Skip to content

Commit 0fca9eb

Browse files
committed
Switch to codecov for coverage reporting
1 parent 91b3697 commit 0fca9eb

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/code_coverage.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,10 @@ jobs:
2525
- name: Run tests and collect coverage
2626
run: |
2727
source .venv/bin/activate
28-
pytest --cov=aiperf --cov-report=html:htmlcov
28+
pytest --cov=aiperf --cov-branch --cov-report=xml
2929
30-
# - name: Upload coverage report as artifact
31-
# uses: actions/upload-artifact@v4
32-
# with:
33-
# name: htmlcov
34-
# path: ./htmlcov
35-
36-
- name: List files in htmlcov
37-
run: ls -R htmlcov
38-
39-
- name: Deploy coverage report to GitHub Pages
40-
uses: peaceiris/actions-gh-pages@v4
30+
- name: Upload results to Codecov
31+
uses: codecov/codecov-action@v5
4132
with:
42-
github_token: ${{ secrets.GITHUB_TOKEN }}
43-
publish_dir: htmlcov
44-
publish_branch: gh-pages
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
slug: ai-dynamo/aiperf

0 commit comments

Comments
 (0)