diff --git a/noxfile.py b/noxfile.py index 8404a52..3aeeb61 100644 --- a/noxfile.py +++ b/noxfile.py @@ -49,6 +49,23 @@ def test_bmi(session: nox.Session) -> None: ) +@nox.session(name="test-notebooks", python=PYTHON_VERSIONS[-1]) +def test_notebooks(session: nox.Session) -> None: + """Test the notebooks.""" + session.install(".[testing,examples]") + session.install("nbmake") + + args = [ + "examples", + "--nbmake", + "--nbmake-kernel=python3", + "--nbmake-timeout=3000", + "-vvv", + ] + session.posargs + + session.run("pytest", *args) + + @nox.session def lint(session: nox.Session) -> None: """Clean lint and assert style.""" diff --git a/pyproject.toml b/pyproject.toml index 144a892..b00a349 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,6 +92,7 @@ addopts = """ --durations 16 --doctest-modules -vvv + --ignore-glob=examples/*.py """ doctest_optionflags = [ "NORMALIZE_WHITESPACE",