Skip to content

Commit

Permalink
running check for a single notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleoconnell-NIH committed Dec 5, 2023
1 parent e956077 commit 91c7e23
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/check-jupyter.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,28 @@
name: Test Notebooks
name: Test Notebook

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
- main

jobs:
test-notebooks:
test-notebook:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jupyter nbformat nbconvert
- name: Execute Notebooks
run: |
find tutorials/notebooks/* -name '*.ipynb' -exec jupyter nbconvert --to notebook --execute {} +
pip install jupyter
- name: Check for errors
- name: Test notebook
run: |
if [ $? -ne 0 ]; then
echo "Notebook execution failed."
exit 1
fi
jupyter nbconvert --to notebook --execute /tutorials/notebooks/LifeSciencesAPI/nextflow/Part1_LS_API_Nextflow.ipynb

0 comments on commit 91c7e23

Please sign in to comment.