Skip to content

Commit b38f6fe

Browse files
committed
minor fix
1 parent 596bc07 commit b38f6fe

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build_all_versions
1+
name: main
22

33
on:
44
push:

scripts/build_all_versions.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ def build_repo(pkpy_repo: repo.Repo, tag: Union[TagReference, BranchAsTag]) -> f
100100

101101

102102
if __name__ == "__main__":
103-
code = os.system('git clone https://github.com/pocketpy/pocketpy.git')
104-
if code != 0:
105-
print("Failed to clone the repository. Please check your network connection or the repository URL.")
106-
exit(1)
103+
if not os.path.exists('pocketpy'):
104+
code = os.system('git clone https://github.com/pocketpy/pocketpy.git')
105+
if code != 0:
106+
print("Failed to clone the repository. Please check your network connection or the repository URL.")
107+
exit(1)
107108

108109
pkpy_repo = repo.Repo('pocketpy')
109110

scripts/run_benchmarks.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ def test_file(filepath, cpython=False, prefix='.'):
1919

2020
def iter_outputs(root='output'):
2121
entries = os.listdir(root)
22-
entries.sort()
22+
entries.sort(reverse=True)
23+
24+
entries.remove('pkpy-main')
25+
entries.insert(0, 'pkpy-main') # Ensure the main version is first
26+
2327
for entry in entries:
2428
path = os.path.join(root, entry)
2529
if os.path.isdir(path):

0 commit comments

Comments
 (0)