Add Coverall Support (#28)

Add Coveralls tracking for python 3.12 tests
This commit is contained in:
Arnav Sacheti
2025-12-04 22:27:19 -08:00
committed by GitHub
parent f9f9d36db7
commit 826765cde8

View File

@@ -18,6 +18,7 @@ jobs:
image: verilator/verilator:latest image: verilator/verilator:latest
permissions: permissions:
contents: read contents: read
statuses: write
strategy: strategy:
matrix: matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
@@ -45,6 +46,15 @@ jobs:
- name: Run tests - name: Run tests
run: uv run pytest tests/ --cov=peakrdl_busdecoder --cov-report=xml --cov-report=term run: uv run pytest tests/ --cov=peakrdl_busdecoder --cov-report=xml --cov-report=term
- name: Upload coverage to Coveralls
if: matrix.python-version == '3.12'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
uv pip install coveralls
uv run coveralls --service=github
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
uses: codecov/codecov-action@v4 uses: codecov/codecov-action@v4
if: matrix.python-version == '3.12' if: matrix.python-version == '3.12'