mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-03-11 20:13:39 -05:00
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:
13
.github/workflows/test-notebooks.yml
vendored
13
.github/workflows/test-notebooks.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user