Skip to content

Commit

Permalink
update tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-richard committed Jul 31, 2023
1 parent 9d20669 commit 3e39a0c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,17 @@ jobs:
pip install pytest pytest-cov sphinx pandoc
pip install -r docs/requirements.txt
pytest
- name: Test with pytest (coverage + long tests)
if: matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest'
run: |
sudo apt update && sudo apt install -y texlive pandoc
pip install pytest pytest-cov sphinx pandoc
pip install -r docs/requirements.txt
pytest --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
if: matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests

0 comments on commit 3e39a0c

Please sign in to comment.