From 82a77583b5d4ad9de31a731ee1ae849fc80152a3 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 9 Jan 2024 17:24:55 +0100 Subject: [PATCH] DX: define `nb` job in `tox.ini` --- pyproject.toml | 1 + tox.ini | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 16090f1..4064200 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,6 +97,7 @@ sty = [ "pre-commit", ] test = [ + "nbmake", "pytest", "pytest-cov", "pytest-profiling", diff --git a/tox.ini b/tox.ini index e795088..db456cd 100644 --- a/tox.ini +++ b/tox.ini @@ -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