Skip to content

Commit

Permalink
split doctests from the notebooks_doctests build, add doctests to mor…
Browse files Browse the repository at this point in the history
…e builds
  • Loading branch information
Zeitsperre committed Apr 16, 2024
1 parent c75423c commit 4d5ed61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,17 @@ jobs:
matrix:
include:
# Windows builds
- tox-env: py39-prefetch-coverage
- tox-env: py39-coverage-prefetch
python-version: "3.9"
markers: -m 'not slow'
os: windows-latest
# macOS builds
- tox-env: py310-coverage
- tox-env: py310-coverage-doctest
python-version: "3.10"
markers: -m 'not slow'
os: macos-latest
# Linux builds
- tox-env: py39-coverage-sbck
- tox-env: py39-coverage-sbck-doctest
python-version: "3.9"
markers: -m 'not slow'
os: ubuntu-latest
Expand All @@ -139,11 +139,11 @@ jobs:
python-version: "3.11"
markers: -m 'not slow'
os: ubuntu-latest
- tox-env: py312-coverage-numba
- tox-env: py312-coverage-numba-doctest
python-version: "3.12"
markers: -m 'not slow'
os: ubuntu-latest
- tox-env: notebooks_doctests
- tox-env: notebooks
python-version: "3.10"
os: ubuntu-latest
- tox-env: offline-prefetch
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ min_version = 4.0
env_list =
lint
docs
notebooks_doctests
notebooks
offline-prefetch
py39-upstream-doctest
py310
Expand Down Expand Up @@ -65,11 +65,11 @@ allowlist_externals =
;deps =
;extras =

[testenv:notebooks_doctests{-coverage,}]
description = Run notebooks and doctests with pytest under {basepython}
[testenv:notebooks]
description = Run notebooks with pytest under {basepython}
commands =
pytest --no-cov --nbval --dist=loadscope --rootdir=tests/ --ignore=docs/notebooks/example.ipynb docs/notebooks
pytest --rootdir=tests/ --xdoctest xclim
commands_post =

[testenv:offline{-prefetch,}{-coverage,}]
description = Run tests with pytest under {basepython}, preventing socket connections (except for unix sockets for async support)
Expand Down Expand Up @@ -117,8 +117,8 @@ commands_pre =
xclim --help
commands =
prefetch: xclim prefetch_testing_data
doctest: pytest --no-cov --rootdir=tests/ --xdoctest xclim
pytest {posargs}
doctest: pytest --rootdir=tests/ --xdoctest xclim
commands_post =
coverage: - coveralls
allowlist_externals =
Expand Down

0 comments on commit 4d5ed61

Please sign in to comment.