Skip to content

Commit

Permalink
DX: define nb job in tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jan 9, 2024
1 parent b8cafa6 commit 82a7758
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ sty = [
"pre-commit",
]
test = [
"nbmake",
"pytest",
"pytest-cov",
"pytest-profiling",
Expand Down
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ passenv = *
setenv =
FORCE_COLOR = yes

[testenv:nb]
allowlist_externals =
pytest
commands =
pytest --nbmake {posargs:docs}
description =
Run all notebooks with pytest
passenv = *

[testenv:sty]
allowlist_externals =
pre-commit
Expand Down

0 comments on commit 82a7758

Please sign in to comment.