Add Codecov coverage and test analytics for Python CI (#91)

This commit is contained in:
l5y
2025-09-16 12:04:46 +02:00
committed by GitHub
parent 1c13b99f3b
commit 49dcfebfb3
2 changed files with 21 additions and 3 deletions

View File

@@ -24,10 +24,24 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black pytest meshtastic
pip install black pytest pytest-cov meshtastic
- name: Lint with black
run: |
black --check ./
- name: Test with pytest
- name: Test with pytest and coverage
run: |
pytest
mkdir -p reports
pytest --cov=data --cov-report=term --cov-report=xml:reports/python-coverage.xml --junitxml=reports/python-junit.xml
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v5
with:
files: reports/python-coverage.xml
flags: python-ingestor
name: python-ingestor
- name: Upload test results to Codecov
if: always()
uses: codecov/test-results-action@v1
with:
files: reports/python-junit.xml
flags: python-ingestor