Skip to content

Commit

Permalink
Update python-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pacnpal authored Dec 10, 2024
1 parent fd44299 commit ec082f4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit ec082f4

Please sign in to comment.