Skip to content

Commit

Permalink
CI: doctest only on ubuntu latest (pysal#219)
Browse files Browse the repository at this point in the history
* CI: doctest only on ubuntu latest

* try including coverage

* doctestplus

* Apply suggestions from code review

Co-authored-by: James Gaboardi <jgaboardi@gmail.com>

---------

Co-authored-by: James Gaboardi <jgaboardi@gmail.com>
  • Loading branch information
2 people authored and knaaptime committed Jul 2, 2024
1 parent 1f7434e commit 4de91bb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,18 @@ jobs:
- name: Run pytest
run: |
pytest mapclassify -r a -v -n auto --doctest-modules --cov mapclassify --cov-config .coveragerc --cov-report xml --color yes --cov-append --cov-report term-missing
pytest mapclassify -r a -v -n auto --cov mapclassify --cov-report xml --color yes --cov-append --cov-report term-missing
- name: run docstring tests
if: contains(matrix.environment-file, '311-numba') && contains(matrix.os, 'ubuntu')
run: |
pytest \
-v \
-r a \
-n auto \
--color yes \
--cov mapclassify --cov-report xml --cov-append \
--doctest-only mapclassify
- name: codecov (${{ matrix.os }}, ${{ matrix.environment-file }})
uses: codecov/codecov-action@v4
Expand Down
1 change: 1 addition & 0 deletions ci/311-numba.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- pytest
- pytest-cov
- pytest-xdist
- pytest-doctestplus
- codecov
- matplotlib
# optional
Expand Down

0 comments on commit 4de91bb

Please sign in to comment.