fix: Resolve GitHub Actions workflow failures

- Fix YAML syntax error in test-notebooks.yml (multi-line Python code)
- Add missing setup-dev.sh script referenced by workflow
- Both workflow files now pass YAML validation
This commit is contained in:
Vijay Janapa Reddi
2025-10-19 12:46:34 -04:00
parent bc4f6f4c78
commit 8160776485
2 changed files with 47 additions and 12 deletions

View File

@@ -99,18 +99,7 @@ jobs:
for notebook in modules/source/*/*.ipynb; do
if [ -f "$notebook" ]; then
echo "Validating $notebook"
python -c "
import json
try:
with open('$notebook') as f:
nb = json.load(f)
assert 'cells' in nb, 'No cells found'
assert len(nb['cells']) > 0, 'Empty notebook'
print('✓ $notebook is valid')
except Exception as e:
print('✗ $notebook validation failed:', e)
exit(1)
"
python -c 'import json; nb = json.load(open("'"$notebook"'")); assert "cells" in nb and len(nb["cells"]) > 0; print("✓ '"$notebook"' is valid")'
fi
done