Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
back to serial nb execution
Browse files Browse the repository at this point in the history
zsimjee committed Nov 21, 2023
1 parent 409dbb1 commit ccf3c94
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/examples_check.yml
Original file line number Diff line number Diff line change
@@ -49,16 +49,10 @@ jobs:
- name: Execute notebooks and check for errors
run: |
cd docs/examples
# Function to process a notebook
process_notebook() {
notebook="$1"
echo "Processing $notebook..."
poetry run jupyter nbconvert --to notebook --execute "$notebook"
if [ $? -ne 0 ]; then
echo "Error found in $notebook"
exit 1
fi
}
export -f process_notebook # Export the function for parallel execution
# Run in parallel
ls *.ipynb | parallel process_notebook
for notebook in $(ls *.ipynb); do
poetry run jupyter nbconvert --to notebook --execute "$notebook"
if [ $? -ne 0 ]; then
echo "Error found in $notebook"
exit 1
fi
done

0 comments on commit ccf3c94

Please sign in to comment.