Skip to content

Commit da35de1

Browse files
committed
ci: fix critical tests check to scan .py files (avoid IsADirectoryError)
1 parent 82a1560 commit da35de1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/spec-pipeline.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ jobs:
3838
python - <<PY
3939
import pathlib, sys
4040
repo = pathlib.Path('.').resolve()
41-
txt = repo.read_text()
41+
txt = ''
42+
for p in repo.rglob('*.py'):
43+
try:
44+
txt += p.read_text()
45+
except Exception:
46+
pass
4247
required = [
4348
'test_selfhost_roundtrip_identity',
4449
'test_selfhost_closed_loop_determinism',

0 commit comments

Comments
 (0)