Skip to content

Commit

Permalink
ci: add Coveralls for code coverage reporting
Browse files Browse the repository at this point in the history
- Add Coveralls GitHub Action to upload coverage reports
- Configure pytest to generate coverage reports in XML format
- Add term-missing report for better visibility in CI logs
- Use built-in GITHUB_TOKEN for authentication

This will provide code coverage feedback directly in pull requests
and track coverage trends over time.
  • Loading branch information
gabezurita committed Dec 11, 2024
1 parent 5e234c7 commit 1aad9fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ jobs:
- name: "Run tests"
run: |
pytest --cov=src --cov-report=xml
pytest --cov=src --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1aad9fe

Please sign in to comment.