Skip to content

Commit

Permalink
ci: test notebooks with nbmake (#186)
Browse files Browse the repository at this point in the history
* ci: run mypy in tox sty job through pre-commit
  This is possible since #184 made mypy run serial in pre-commit

* ci: rename tox testnb job to nb
* ci: switch to nbmake
* ci: update workflows with repo-maintenance
* ci: update pip constraints and pre-commit config
* chore: use next-gen attr API
  Since attr >20.1.0 is already requested, we can switch to
  https://www.attrs.org/en/stable/api.html#next-gen
* ci: update pip constraints and pre-commit config

Co-authored-by: GitHub <noreply@github.com>
  • Loading branch information
redeboer and web-flow committed Dec 2, 2021
1 parent 56eb330 commit 281bd67
Show file tree
Hide file tree
Showing 16 changed files with 125 additions and 99 deletions.
23 changes: 12 additions & 11 deletions .constraints/py3.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ anyio==3.4.0
aquirdturtle-collapsible-headings==3.1.0
argon2-cffi==21.1.0
astroid==2.9.0
attrs==20.3.0
attrs==21.2.0
babel==2.9.1
backcall==0.2.0
backports.entry-points-selectable==1.1.1
Expand All @@ -36,7 +36,7 @@ execnet==1.9.0
filelock==3.4.0
flake8==4.0.1
flake8-blind-except==0.2.0
flake8-bugbear==21.11.28
flake8-bugbear==21.11.29
flake8-builtins==1.5.3
flake8-comprehensions==3.7.0
flake8-plugin-utils==1.3.2
Expand All @@ -57,9 +57,8 @@ identify==2.4.0
idna==3.3
imagesize==1.3.0
importlib-metadata==4.8.2
importlib-resources==5.4.0
iniconfig==1.1.1
ipykernel==6.5.1
ipykernel==6.6.0
ipympl==0.8.2
ipython==7.30.0
ipython-genutils==0.2.0
Expand All @@ -77,6 +76,7 @@ jupyter-server-mathjax==0.2.3
jupyter-sphinx==0.3.2
jupyterlab==3.2.4
jupyterlab-code-formatter==1.4.10
jupyterlab-pygments==0.1.2
jupyterlab-server==2.8.2
jupyterlab-widgets==1.0.2
kiwisolver==1.3.2
Expand All @@ -99,16 +99,17 @@ myst-nb==0.13.1
myst-parser==0.15.2
nbclassic==0.3.4
nbclient==0.5.9
nbconvert==5.6.1
nbconvert==6.3.0
nbdime==3.1.1
nbformat==5.1.3
nest-asyncio==1.5.1
nbmake==1.0
nest-asyncio==1.5.4
nodeenv==1.6.0
notebook==6.4.6
numpy==1.21.4
packaging==21.3
pandocfilters==1.5.0
parso==0.8.2
parso==0.8.3
particle==0.16.2
pathspec==0.9.0
pep517==0.12.0
Expand All @@ -119,7 +120,7 @@ pillow==8.4.0
pip-tools==6.4.0
platformdirs==2.4.0
pluggy==1.0.0
pre-commit==2.15.0
pre-commit==2.16.0
prometheus-client==0.12.0
prompt-toolkit==3.0.23
ptyprocess==0.7.0
Expand All @@ -128,6 +129,7 @@ pybtex==0.24.0
pybtex-docutils==1.0.1
pycodestyle==2.8.0
pycparser==2.21
pydantic==1.8.2
pydata-sphinx-theme==0.7.2
pydocstyle==6.1.1
pyflakes==2.4.0
Expand All @@ -138,7 +140,6 @@ pyrsistent==0.18.0
pytest==6.2.5
pytest-cov==3.0.0
pytest-forked==1.3.0
pytest-notebook==0.6.1
pytest-profiling==1.7.0
pytest-xdist==2.4.0
python-constraint==1.4.0
Expand All @@ -151,7 +152,7 @@ radon==5.1.0
regex==2021.11.10
requests==2.26.0
restructuredtext-lint==1.3.2
rich==10.15.0
rich==10.15.2
send2trash==1.8.0
setuptools-scm==6.3.2
six==1.16.0
Expand Down Expand Up @@ -188,7 +189,7 @@ types-docutils==0.17.1
types-pkg-resources==0.1.3
types-requests==2.26.1
types-setuptools==57.4.4
typing-extensions==4.0.0
typing-extensions==4.0.1
urllib3==1.26.7
virtualenv==20.10.0
wcwidth==0.2.5
Expand Down
18 changes: 10 additions & 8 deletions .constraints/py3.6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ aquirdturtle-collapsible-headings==3.1.0
argon2-cffi==21.1.0
astroid==2.9.0
async-generator==1.10
attrs==20.3.0
attrs==21.2.0
babel==2.9.1
backcall==0.2.0
backports.entry-points-selectable==1.1.1
Expand Down Expand Up @@ -38,7 +38,7 @@ execnet==1.9.0
filelock==3.4.0
flake8==4.0.1
flake8-blind-except==0.2.0
flake8-bugbear==21.11.28
flake8-bugbear==21.11.29
flake8-builtins==1.5.3
flake8-comprehensions==3.7.0
flake8-plugin-utils==1.3.2
Expand Down Expand Up @@ -78,6 +78,7 @@ jupyter-server-mathjax==0.2.3
jupyter-sphinx==0.3.2
jupyterlab==3.2.4
jupyterlab-code-formatter==1.4.10
jupyterlab-pygments==0.1.2
jupyterlab-server==2.8.2
jupyterlab-widgets==1.0.2
kiwisolver==1.3.1
Expand All @@ -99,10 +100,11 @@ myst-nb==0.13.1
myst-parser==0.15.2
nbclassic==0.3.4
nbclient==0.5.9
nbconvert==5.6.1
nbconvert==6.0.7
nbdime==3.1.1
nbformat==5.1.3
nest-asyncio==1.5.1
nbmake==1.0
nest-asyncio==1.5.4
nodeenv==1.6.0
notebook==6.4.6
numpy==1.19.5
Expand All @@ -119,7 +121,7 @@ pillow==8.4.0
pip-tools==6.4.0
platformdirs==2.4.0
pluggy==1.0.0
pre-commit==2.15.0
pre-commit==2.16.0
prometheus-client==0.12.0
prompt-toolkit==3.0.23
ptyprocess==0.7.0
Expand All @@ -128,6 +130,7 @@ pybtex==0.24.0
pybtex-docutils==1.0.1
pycodestyle==2.8.0
pycparser==2.21
pydantic==1.8.2
pydata-sphinx-theme==0.7.2
pydocstyle==6.1.1
pyflakes==2.4.0
Expand All @@ -138,7 +141,6 @@ pyrsistent==0.18.0
pytest==6.2.5
pytest-cov==3.0.0
pytest-forked==1.3.0
pytest-notebook==0.6.1
pytest-profiling==1.7.0
pytest-xdist==2.4.0
python-constraint==1.4.0
Expand All @@ -151,7 +153,7 @@ radon==5.1.0
regex==2021.11.10
requests==2.26.0
restructuredtext-lint==1.3.2
rich==10.15.0
rich==10.15.2
send2trash==1.8.0
six==1.16.0
smmap==5.0.0
Expand Down Expand Up @@ -188,7 +190,7 @@ types-docutils==0.17.1
types-pkg-resources==0.1.3
types-requests==2.26.1
types-setuptools==57.4.4
typing-extensions==4.0.0 ; python_version < "3.8.0"
typing-extensions==4.0.1 ; python_version < "3.8.0"
urllib3==1.26.7
virtualenv==20.10.0
wcwidth==0.2.5
Expand Down
22 changes: 12 additions & 10 deletions .constraints/py3.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ aquirdturtle-collapsible-headings==3.1.0
argcomplete==1.12.3
argon2-cffi==21.1.0
astroid==2.9.0
attrs==20.3.0
attrs==21.2.0
babel==2.9.1
backcall==0.2.0
backports.entry-points-selectable==1.1.1
Expand All @@ -37,7 +37,7 @@ execnet==1.9.0
filelock==3.4.0
flake8==4.0.1
flake8-blind-except==0.2.0
flake8-bugbear==21.11.28
flake8-bugbear==21.11.29
flake8-builtins==1.5.3
flake8-comprehensions==3.7.0
flake8-plugin-utils==1.3.2
Expand All @@ -59,7 +59,7 @@ imagesize==1.3.0
importlib-metadata==4.2.0
importlib-resources==5.4.0
iniconfig==1.1.1
ipykernel==6.5.1
ipykernel==6.6.0
ipympl==0.8.2
ipython==7.30.0
ipython-genutils==0.2.0
Expand All @@ -77,6 +77,7 @@ jupyter-server-mathjax==0.2.3
jupyter-sphinx==0.3.2
jupyterlab==3.2.4
jupyterlab-code-formatter==1.4.10
jupyterlab-pygments==0.1.2
jupyterlab-server==2.8.2
jupyterlab-widgets==1.0.2
kiwisolver==1.3.2
Expand All @@ -99,16 +100,17 @@ myst-nb==0.13.1
myst-parser==0.15.2
nbclassic==0.3.4
nbclient==0.5.9
nbconvert==5.6.1
nbconvert==6.3.0
nbdime==3.1.1
nbformat==5.1.3
nest-asyncio==1.5.1
nbmake==1.0
nest-asyncio==1.5.4
nodeenv==1.6.0
notebook==6.4.6
numpy==1.21.4
packaging==21.3
pandocfilters==1.5.0
parso==0.8.2
parso==0.8.3
particle==0.16.2
pathspec==0.9.0
pep517==0.12.0
Expand All @@ -119,7 +121,7 @@ pillow==8.4.0
pip-tools==6.4.0
platformdirs==2.4.0
pluggy==1.0.0
pre-commit==2.15.0
pre-commit==2.16.0
prometheus-client==0.12.0
prompt-toolkit==3.0.23
ptyprocess==0.7.0
Expand All @@ -128,6 +130,7 @@ pybtex==0.24.0
pybtex-docutils==1.0.1
pycodestyle==2.8.0
pycparser==2.21
pydantic==1.8.2
pydata-sphinx-theme==0.7.2
pydocstyle==6.1.1
pyflakes==2.4.0
Expand All @@ -138,7 +141,6 @@ pyrsistent==0.18.0
pytest==6.2.5
pytest-cov==3.0.0
pytest-forked==1.3.0
pytest-notebook==0.6.1
pytest-profiling==1.7.0
pytest-xdist==2.4.0
python-constraint==1.4.0
Expand All @@ -151,7 +153,7 @@ radon==5.1.0
regex==2021.11.10
requests==2.26.0
restructuredtext-lint==1.3.2
rich==10.15.0
rich==10.15.2
send2trash==1.8.0
setuptools-scm==6.3.2
six==1.16.0
Expand Down Expand Up @@ -189,7 +191,7 @@ types-docutils==0.17.1
types-pkg-resources==0.1.3
types-requests==2.26.1
types-setuptools==57.4.4
typing-extensions==4.0.0 ; python_version < "3.8.0"
typing-extensions==4.0.1 ; python_version < "3.8.0"
urllib3==1.26.7
virtualenv==20.10.0
wcwidth==0.2.5
Expand Down
22 changes: 12 additions & 10 deletions .constraints/py3.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ anyio==3.4.0
aquirdturtle-collapsible-headings==3.1.0
argon2-cffi==21.1.0
astroid==2.9.0
attrs==20.3.0
attrs==21.2.0
babel==2.9.1
backcall==0.2.0
backports.entry-points-selectable==1.1.1
Expand All @@ -36,7 +36,7 @@ execnet==1.9.0
filelock==3.4.0
flake8==4.0.1
flake8-blind-except==0.2.0
flake8-bugbear==21.11.28
flake8-bugbear==21.11.29
flake8-builtins==1.5.3
flake8-comprehensions==3.7.0
flake8-plugin-utils==1.3.2
Expand All @@ -59,7 +59,7 @@ imagesize==1.3.0
importlib-metadata==4.8.2
importlib-resources==5.4.0
iniconfig==1.1.1
ipykernel==6.5.1
ipykernel==6.6.0
ipympl==0.8.2
ipython==7.30.0
ipython-genutils==0.2.0
Expand All @@ -77,6 +77,7 @@ jupyter-server-mathjax==0.2.3
jupyter-sphinx==0.3.2
jupyterlab==3.2.4
jupyterlab-code-formatter==1.4.10
jupyterlab-pygments==0.1.2
jupyterlab-server==2.8.2
jupyterlab-widgets==1.0.2
kiwisolver==1.3.2
Expand All @@ -99,16 +100,17 @@ myst-nb==0.13.1
myst-parser==0.15.2
nbclassic==0.3.4
nbclient==0.5.9
nbconvert==5.6.1
nbconvert==6.3.0
nbdime==3.1.1
nbformat==5.1.3
nest-asyncio==1.5.1
nbmake==1.0
nest-asyncio==1.5.4
nodeenv==1.6.0
notebook==6.4.6
numpy==1.21.4
packaging==21.3
pandocfilters==1.5.0
parso==0.8.2
parso==0.8.3
particle==0.16.2
pathspec==0.9.0
pep517==0.12.0
Expand All @@ -119,7 +121,7 @@ pillow==8.4.0
pip-tools==6.4.0
platformdirs==2.4.0
pluggy==1.0.0
pre-commit==2.15.0
pre-commit==2.16.0
prometheus-client==0.12.0
prompt-toolkit==3.0.23
ptyprocess==0.7.0
Expand All @@ -128,6 +130,7 @@ pybtex==0.24.0
pybtex-docutils==1.0.1
pycodestyle==2.8.0
pycparser==2.21
pydantic==1.8.2
pydata-sphinx-theme==0.7.2
pydocstyle==6.1.1
pyflakes==2.4.0
Expand All @@ -138,7 +141,6 @@ pyrsistent==0.18.0
pytest==6.2.5
pytest-cov==3.0.0
pytest-forked==1.3.0
pytest-notebook==0.6.1
pytest-profiling==1.7.0
pytest-xdist==2.4.0
python-constraint==1.4.0
Expand All @@ -151,7 +153,7 @@ radon==5.1.0
regex==2021.11.10
requests==2.26.0
restructuredtext-lint==1.3.2
rich==10.15.0
rich==10.15.2
send2trash==1.8.0
setuptools-scm==6.3.2
six==1.16.0
Expand Down Expand Up @@ -188,7 +190,7 @@ types-docutils==0.17.1
types-pkg-resources==0.1.3
types-requests==2.26.1
types-setuptools==57.4.4
typing-extensions==4.0.0
typing-extensions==4.0.1
urllib3==1.26.7
virtualenv==20.10.0
wcwidth==0.2.5
Expand Down
Loading

0 comments on commit 281bd67

Please sign in to comment.