ci: run notebook checks for changed notebooks (#1941)

This commit is contained in:
Vadym Barda
2024-10-01 16:50:24 +00:00
committed by GitHub
parent 674180ad0c
commit 46b52b2426
9 changed files with 66 additions and 18 deletions
+7 -2
View File
@@ -22,8 +22,13 @@ execute_notebook() {
export -f execute_notebook
# Find all notebooks and filter out those in the skip list
notebooks=$(find docs/docs/tutorials docs/docs/how-tos -name "*.ipynb" | grep -v ".ipynb_checkpoints" | grep -vFf <(echo "$SKIP_NOTEBOOKS"))
# Check if custom notebook paths are provided
if [ $# -gt 0 ]; then
notebooks="$@"
else
# Find all notebooks and filter out those in the skip list
notebooks=$(find docs/docs/tutorials docs/docs/how-tos -name "*.ipynb" | grep -v ".ipynb_checkpoints" | grep -vFf <(echo "$SKIP_NOTEBOOKS"))
fi
# Execute notebooks sequentially
for file in $notebooks; do