Skip to content

Commit 788f751

Browse files
update
1 parent 5a8f1be commit 788f751

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

.github/workflows/run-examples.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -339,16 +339,7 @@ jobs:
339339
echo '[]' > all-results.json
340340
for results_file in all-outputs/results-batch-*.json; do
341341
[ -f "$results_file" ] || continue
342-
python3 << PYEOF
343-
import json
344-
with open("all-results.json") as f:
345-
all_results = json.load(f)
346-
with open("$results_file") as f:
347-
batch_results = json.load(f)
348-
all_results.extend(batch_results)
349-
with open("all-results.json", "w") as f:
350-
json.dump(all_results, f, indent=2)
351-
PYEOF
342+
python3 -c "import json; a=json.load(open('all-results.json')); b=json.load(open('$results_file')); a.extend(b); json.dump(a, open('all-results.json','w'), indent=2)"
352343
done
353344
354345
# Copy example outputs (example dirs sit directly in all-outputs/)

0 commit comments

Comments
 (0)