Skip to content

Commit

Permalink
Merge pull request #7 from pheuer/codecov
Browse files Browse the repository at this point in the history
Try adding codecov to ci
  • Loading branch information
pheuer authored Nov 25, 2024
2 parents c1f15d2 + 23f6884 commit c799ee5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
- name: Tests Python 3.12 - Ubuntu
os: ubuntu-latest
python-version: '3.12'


run-codecov: true


steps:
Expand All @@ -39,9 +38,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install pytest pytest-cov
pip install -e .
- name: Test with pytest
run: |
pytest
pytest --cov --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
if: ${{ matrix.run-codecov }}
with:
fail_ci_if_error: false
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit c799ee5

Please sign in to comment.