Update python-tests.yml

This commit is contained in:
pacnpal
2024-12-10 13:50:40 -05:00
committed by GitHub
parent fd44299f11
commit ec082f4174

View File

@@ -20,11 +20,18 @@ jobs:
python -m pip install --upgrade pip
pip install .
pip install pytest pytest-cov
- name: Run tests
- name: Run coverage & upload to Codecov
run: |
pytest tests
pytest --cov --cov-report=xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run pytest tests
run: |
pytest --cov --junitxml=junit.xml -o junit_family=legacy
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}