Skip to content

Commit a928e7c

Browse files
Update validate_examples.yml
1 parent 8e7c1ff commit a928e7c

1 file changed

Lines changed: 5 additions & 17 deletions

File tree

.github/workflows/validate_examples.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
validate:
1010
runs-on: ubuntu-latest
11+
1112
steps:
1213
- name: Checkout
1314
uses: actions/checkout@v4
@@ -32,22 +33,9 @@ jobs:
3233
ls -la datasets/schema || true
3334
echo "---- examples ----"
3435
ls -la examples || true
36+
echo "---- scripts ----"
37+
ls -la scripts || true
3538
36-
- name: Validate sample log against schema
39+
- name: Validate (script)
3740
run: |
38-
python - <<'PY'
39-
import json
40-
from jsonschema import validate
41-
42-
schema_path = "datasets/schema/signal-log.schema.json"
43-
sample_path = "examples/sample_signal_log.json"
44-
45-
with open(schema_path, "r", encoding="utf-8") as f:
46-
schema = json.load(f)
47-
48-
with open(sample_path, "r", encoding="utf-8") as f:
49-
data = json.load(f)
50-
51-
validate(instance=data, schema=schema)
52-
print("OK: sample log matches schema")
53-
PY
41+
python scripts/validate.py

0 commit comments

Comments
 (0)