diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 519f7c33..895b6021 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -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 diff --git a/ci/311-numba.yaml b/ci/311-numba.yaml index 3c62a28e..8934a588 100644 --- a/ci/311-numba.yaml +++ b/ci/311-numba.yaml @@ -15,6 +15,7 @@ dependencies: - pytest - pytest-cov - pytest-xdist + - pytest-doctestplus - codecov - matplotlib # optional