Skip to content

Commit

Permalink
Fixed Notebook Tests (#52)
Browse files Browse the repository at this point in the history
* Added a flag file to differentiate between workflow tests
* Made changes in notebook dir path and few minor changes in notebook
itself
* Added few requirements which were required for staging notebook
* Upgraded macOS versions as previous ones are deprecated [read issue
here](actions/runner-images#5583)

Closes #41

---------

Authored-by: pjflux2001 <cisprashant@gmail.com>
  • Loading branch information
pjflux2001 authored Jun 8, 2023
1 parent 1d3caf3 commit ca5297d
Show file tree
Hide file tree
Showing 10 changed files with 2,560 additions and 2,105 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
os: [macOS-10.14, macOS-10.15]
os: [macOS-11, macOS-12]
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ubuntu20_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install . -U
- name: Create Flag File
run: |
touch /tmp/flag
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand All @@ -41,4 +44,4 @@ jobs:
pytest -v
- name: Test with jupyter notebooks
run: |
pytest --nbmake experiments/jupyter/*.ipynb
pytest --nbmake experiments/jupyter/production/*.ipynb
626 changes: 0 additions & 626 deletions experiments/jupyter/PolyPhy_2D_continuous_data.ipynb

This file was deleted.

651 changes: 0 additions & 651 deletions experiments/jupyter/PolyPhy_2D_discrete_data.ipynb

This file was deleted.

707 changes: 0 additions & 707 deletions experiments/jupyter/PolyPhy_3D_discrete_data.ipynb

This file was deleted.

856 changes: 856 additions & 0 deletions experiments/jupyter/production/PolyPhy_2D_continuous_data.ipynb

Large diffs are not rendered by default.

788 changes: 788 additions & 0 deletions experiments/jupyter/production/PolyPhy_2D_discrete_data.ipynb

Large diffs are not rendered by default.

869 changes: 869 additions & 0 deletions experiments/jupyter/production/PolyPhy_3D_discrete_data.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ taichi==1.0.3
toml
tox
yapf
ipywidgets
pyvista
trimesh
PyMCubes
scikit-image

0 comments on commit ca5297d

Please sign in to comment.