Skip to content

Commit

Permalink
Upload coverage from doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Oct 19, 2021
1 parent e164d33 commit 4cccfc9
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ jobs:
- name: List installed Python packages
run: python -m pip list

- name: Test docstring examples with doctest
run: pytest -r sx src/

- name: Test README examples with doctest
run: pytest -r sx README.rst

- name: Test with pytest
run: |
pytest -r sx --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py
Expand All @@ -73,6 +67,19 @@ jobs:
files: ./coverage.xml
flags: contrib

- name: Test docstring examples with doctest
run: pytest -r sx src/

- name: Test README examples with doctest
run: pytest -r sx README.rst

- name: Report doctest coverage with Codecov
if: github.event_name != 'schedule' && matrix.python-version == 3.9 && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml
flags: doctest

- name: Run benchmarks
if: github.event_name == 'schedule' && matrix.python-version == 3.9
run: |
Expand Down

0 comments on commit 4cccfc9

Please sign in to comment.