Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
run: |
pytest --cov=heat --cov-report=xml:./coverage.xml -vvv
bmi-test heat:BmiHeat --config-file=${GITHUB_WORKSPACE}/examples/heat.yaml --root-dir=examples -vvv
pytest examples --nbmake --nbmake-timeout=3000 --nbmake-kernel=python3 -v

- name: Coveralls
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
Expand Down
17 changes: 17 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,23 @@ def test(session: nox.Session) -> None:
session.run("coverage", "report", "--ignore-errors", "--show-missing")


@nox.session(name="test-examples")
def test_examples(session: nox.Session) -> None:
"""Run the example notebooks."""
session.install(".[testing]")

session.run(
"pytest",
"examples",
"--nbmake",
"--nbmake-timeout",
"3000",
"--nbmake-kernel",
"python3",
"-v",
)


@nox.session
def lint(session: nox.Session) -> None:
"""Look for lint."""
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ testing = [
"isort",
"ruff",
"bmi-tester",
"nbmake",
]

[tool.setuptools.dynamic]
Expand Down
1 change: 1 addition & 0 deletions requirements-testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ black
bmi-tester
coveralls
isort
nbmake
pytest
pytest-cov
ruff
Loading