Skip to content

Commit

Permalink
fix: use papermill
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaniaguam committed Oct 19, 2024
1 parent 6a32da8 commit 4c639af
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/checknb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,16 @@ jobs:
env:
PYTHON: python

# Step to run Jupyter notebooks in specified subdirectories
# Install Papermill for executing notebooks
- name: Install Papermill
run: python -m pip install papermill

# Run all Jupyter notebooks using the wildcard, capture errors
- name: Run Jupyter Notebooks
uses: jupyter-actions/run-notebook@v2.0.0
with:
path: "notebooks/**/*.ipynb"
run: |
EXIT_CODE=0
for notebook in $(find notebooks -name "*.ipynb"); do
echo "Running notebook: $notebook"
papermill "$notebook" /dev/null || EXIT_CODE=$?
done
exit $EXIT_CODE

0 comments on commit 4c639af

Please sign in to comment.