Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
ENH: Run Jupyter notebooks in the tox testing step
Browse files Browse the repository at this point in the history
Run Jupyter notebooks in the `tox` testing step.

Add `nbconvert` and `nbclient` to the dependencies of the `test` table
in `pyproject.toml` so that the notebooks can be run.
  • Loading branch information
jhlegarreta committed Nov 8, 2024
1 parent 795a9b7 commit 441e67c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ resmon = ["psutil >=5.4"]

test = [
"coverage",
"nbconvert",
"nbclient",
"pytest >= 4.4",
"pytest-cov",
"pytest-env",
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ extras = test
commands =
pytest --doctest-modules --cov eddymotion -n auto --cov-report xml \
--junitxml=test-results.xml -v src test {posargs}
python -m nbconvert --to notebook --execute docs/notebooks/*.ipynb {posargs}

[testenv:docs]
description = Build documentation site
Expand Down

0 comments on commit 441e67c

Please sign in to comment.