File tree Expand file tree Collapse file tree 3 files changed +34
-33
lines changed
Expand file tree Collapse file tree 3 files changed +34
-33
lines changed Original file line number Diff line number Diff line change 2323
2424 - name : Validate test vector schema
2525 run : python tools/validate_test_vectors.py
26-
27- - name : Set up Arduino CLI
28- uses : arduino/setup-arduino-cli@v1
29- with :
30- version : " 0.35.3"
31-
32- - name : Check Arduino formatting
33- run : |
34- set -euo pipefail
35- mapfile -t files < <(git ls-files "*.ino")
36- if [ ${#files[@]} -eq 0 ]; then
37- echo "No Arduino sketches found; skipping format check."
38- exit 0
39- fi
40- arduino-cli format --check "${files[@]}"
41-
42- - name : Run test runner (if present)
43- run : |
44- set -euo pipefail
45- if [ -f tools/run_tests.sh ]; then
46- bash tools/run_tests.sh
47- else
48- echo "Test runner not found; skipping."
49- fi
Original file line number Diff line number Diff line change 1414 },
1515 {
1616 "type" : " object" ,
17- "required" : [" vectors" ],
18- "properties" : {
19- "vectors" : {
20- "type" : " array" ,
21- "items" : {
22- "$ref" : " #/$defs/testVector"
17+ "oneOf" : [
18+ {
19+ "required" : [" vectors" ],
20+ "properties" : {
21+ "vectors" : {
22+ "type" : " array" ,
23+ "items" : {
24+ "$ref" : " #/$defs/testVector"
25+ },
26+ "minItems" : 1
27+ }
28+ },
29+ "additionalProperties" : true
30+ },
31+ {
32+ "required" : [" tests" ],
33+ "properties" : {
34+ "tests" : {
35+ "type" : " array" ,
36+ "items" : {
37+ "$ref" : " #/$defs/testVector"
38+ },
39+ "minItems" : 1
40+ }
2341 },
24- "minItems " : 1
42+ "additionalProperties " : true
2543 }
26- },
27- "additionalProperties" : true
44+ ]
2845 }
2946 ],
3047 "$defs" : {
Original file line number Diff line number Diff line change @@ -46,6 +46,14 @@ def main() -> int:
4646 print (f"No test vector JSON files found in { args .vectors } ; skipping validation." )
4747 return 0
4848
49+ # Exclude large generated files that would timeout in CI
50+ excluded_files = {"exhaustive.json" }
51+ json_files = [f for f in json_files if f .name not in excluded_files ]
52+
53+ if not json_files :
54+ print (f"No test vector JSON files to validate after exclusions; skipping." )
55+ return 0
56+
4957 failures = []
5058 for json_file in json_files :
5159 try :
You can’t perform that action at this time.
0 commit comments