Skip to content

Commit

Permalink
Merge pull request #103 from ssciwr/ci_hack
Browse files Browse the repository at this point in the history
Add 90s timeout for each convert in CI and retry on timeout, resolves #102
  • Loading branch information
lkeegan authored Oct 10, 2023
2 parents 2cf38a1 + 36e10b8 commit b284cd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
for filename in $(ls lunchtime*/*.ipynb)
do
if [ "$filename" != "lunchtime1/lunchtime1.ipynb" ]; then
python -m jupyter nbconvert $filename --to slides --execute --ExecutePreprocessor.kernel_name=python
# if conversion takes more than 90s, kill it and try again
# workaround for ipywidgets conversion occasionally hanging
until timeout 90s python -m jupyter nbconvert $filename --to slides --execute --ExecutePreprocessor.kernel_name=python; do sleep 1; done
fi
done
- run: mv README.md lunchtime* dist/.
Expand Down
2 changes: 1 addition & 1 deletion lunchtime8/lunchtime8.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.11.0"
}
},
"nbformat": 4,
Expand Down

0 comments on commit b284cd6

Please sign in to comment.