Skip to content

Commit c4f08c8

Browse files
committed
fix OOM issue
Signed-off-by: Jinzhe Zeng <[email protected]>
1 parent 4dab4fb commit c4f08c8

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/test_python.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,23 @@ jobs:
9696
with:
9797
pattern: split-${{ matrix.python }}-*
9898
merge-multiple: true
99+
- uses: actions/setup-python@v5
100+
with:
101+
python-version: '3.13'
99102
- name: Combine test durations
100-
run: jq -s add .test_durations_* > .test_durations
103+
# Below line causes OOM
104+
# run: jq -s add .test_durations_* > .test_durations
105+
run: |
106+
from glob import glob
107+
108+
contents = []
109+
for fn in glob(".test_durations_*"):
110+
with open(fn) as f:
111+
contents.append(f.read().strip().strip("{}"))
112+
with open(".test_durations", "w") as f:
113+
f.write("{" + ",".join(contents) + "}")
114+
shell: python
115+
101116
pass:
102117
name: Pass testing Python
103118
needs: [testpython, update_durations]

0 commit comments

Comments
 (0)