diff --git a/.github/workflows/python-tox.yml b/.github/workflows/python-tox.yml index 63eca60..6763937 100644 --- a/.github/workflows/python-tox.yml +++ b/.github/workflows/python-tox.yml @@ -23,3 +23,5 @@ jobs: pip install tox tox-gh-actions - name: Test with tox run: tox + - name: Test example notebook with tox + run: tox -e testnb diff --git a/tox.ini b/tox.ini index 80dc7bf..0147efd 100644 --- a/tox.ini +++ b/tox.ini @@ -4,14 +4,14 @@ # and then run "tox" from this directory. [tox] -envlist = py37,py38,py39,py310,py311,py312,pre-commit +envlist = py37,py38,py39,py310,py311,py312,pre-commit,testnb isolated_build = True [gh-actions] python = 3.7: py37 3.8: py38 - 3.9: py39,pre-commit + 3.9: py39,pre-commit,testnb 3.10: py310 3.11: py311 3.12: py312 @@ -30,3 +30,10 @@ commands = python -m gurobi_logtools --timelines test.xlsx data/*.log python -m gurobi_logtools -t test.xlsx data/*.log python -m gurobi_logtools --write-to-dir nicenames summary.xlsx tests/assets/combined/*.log + +[testenv:testnb] +deps = + pytest + nbmake +commands = + pytest --nbmake --nbmake-kernel=python3 gurobi-logtools.ipynb