Skip to content

Commit

Permalink
back to serial nb execution
Browse files Browse the repository at this point in the history
  • Loading branch information
zsimjee committed Nov 21, 2023
1 parent b4cc079 commit bb1253f
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
Expand Up @@ -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 bb1253f

Please sign in to comment.