File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88jobs :
99 validate :
1010 runs-on : ubuntu-latest
11+
1112 steps :
1213 - name : Checkout
1314 uses : actions/checkout@v4
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
You can’t perform that action at this time.
0 commit comments