File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
uses : docker/setup-buildx-action@v3
19
19
- name : Install the project
20
20
run : uv sync
21
- - name : Clone
21
+ - name : Set up commit0
22
22
run : uv run commit0 setup simpy
23
23
- name : Setup
24
24
run : uv run commit0 build simpy
Original file line number Diff line number Diff line change @@ -72,18 +72,19 @@ def main(
72
72
for name in tqdm (log_dirs ):
73
73
report_file = os .path .join (name , "report.json" )
74
74
name = name .split ("/" )[2 ]
75
+ test_ids = get_tests (name , stdout = False )
75
76
if not os .path .exists (report_file ):
76
77
out .append (
77
78
{
78
79
"name" : name ,
79
80
"sum" : 0 ,
80
81
"passed" : 0 ,
81
82
"num_passed" : 0 ,
83
+ "num_tests" : len (test_ids ),
82
84
}
83
85
)
84
86
continue
85
87
report = load_dataset ("json" , data_files = report_file , split = "train" ) # type: ignore
86
- test_ids = get_tests (name , stdout = False )
87
88
tests = {x ["nodeid" ]: x ["call" ] for x in report ["tests" ][0 ]} # type: ignore
88
89
status = []
89
90
runtimes = []
@@ -110,7 +111,7 @@ def main(
110
111
"sum" : total ,
111
112
"passed" : passed ,
112
113
"num_passed" : status ["passed" ] + status ["xfail" ],
113
- "num_tests" : sum ( status . values () ),
114
+ "num_tests" : len ( test_ids ),
114
115
}
115
116
)
116
117
print ("repo,runtime,num_passed/num_tests" )
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ def main(
94
94
output , "--json-report --json-report-file=report.json"
95
95
)
96
96
context .write_test_output (test_output , timed_out )
97
+ print (test_output )
97
98
except EvaluationError as e :
98
99
error_msg = traceback .format_exc ()
99
100
logger .info (error_msg )
You can’t perform that action at this time.
0 commit comments