Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Use Netlify for notebooks tests #97

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/notebook-test.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/notebooks-test.yml
@@ -0,0 +1,25 @@
name: Notebooks tests

on: [push, pull_request]

jobs:
test-elastix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- run: |
cd examples
pip install -r requirements.txt
pip install pytest-tornasync
python -m ipykernel install --user --name elastixenv
pip install pytest 'nbmake[html]'
- run: |
pytest --nbmake --path-output=.
# - if: failure()
- run: |
netlify deploy --dir=_build/html --auth=${{ secrets.NETLIFY_TOKEN }} --site=${{ secrets.NETLIFY_SITE_API_ID }}

6 changes: 3 additions & 3 deletions examples/ITK_Example10_Transformix_Jacobian.ipynb
Expand Up @@ -186,9 +186,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "ElastixEnv2",
"display_name": "ElastixEnv",
"language": "python",
"name": "elastixenv2"
"name": "elastixenv"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -200,7 +200,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.9"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/ITK_Example11_Transformix_DeformationField.ipynb
Expand Up @@ -265,9 +265,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "ElastixEnv2",
"display_name": "ElastixEnv",
"language": "python",
"name": "elastixenv2"
"name": "elastixenv"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -279,7 +279,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.9"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/ITK_UnitTestExample1_RigidRegistration.ipynb
Expand Up @@ -121,9 +121,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "ITKTestEnvDebug",
"display_name": "ElastixEnv",
"language": "python",
"name": "itktestenvdebug"
"name": "elastixenv"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -135,7 +135,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.9"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/ITK_UnitTestExample2_AffineRegistration.ipynb
Expand Up @@ -122,9 +122,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "ITKTestEnvDebug",
"display_name": "ElastixEnv",
"language": "python",
"name": "itktestenvdebug"
"name": "elastixenv"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -136,7 +136,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.9"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/ITK_UnitTestExample6_PointSetTransformation.ipynb
Expand Up @@ -162,9 +162,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "ITKTestEnvDebug",
"display_name": "ElastixEnv",
"language": "python",
"name": "itktestenvdebug"
"name": "elastixenv"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -176,7 +176,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.9"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down
11 changes: 6 additions & 5 deletions examples/requirements.txt
@@ -1,4 +1,4 @@
itk-elastix>=0.7.0
itk-elastix>=0.8.0
itk==5.1.1.post1
itk-core==5.1.1.post1
itk-numerics==5.1.1.post1
Expand All @@ -7,8 +7,9 @@ itk-registration==5.1.1.post1
itk-segmentation==5.1.1.post1
itkwidgets>=0.32.0
jupyterlab==1.2.5
imageio
imageio>=2.5.0
ipywidgets>=7.5.1
ipympl>=0.4.1
voila>=0.1.21
pyinstaller
ipympl==0.5.7
voila>=0.2.3
pyinstaller>=4.0
sphinxcontrib-bibtex==1.0.0