Skip to content

Commit 4a7dd77

Browse files
committed
Try to fix codegen test in release CI
1 parent 78465e1 commit 4a7dd77

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/test_codegen.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import shutil
2323
import subprocess
2424
import os
25+
import sys
2526
import tempfile
2627

2728
from edgedb import _testbase as tb
@@ -66,17 +67,24 @@ async def run(*args, extra_env=None):
6667
raise
6768

6869
await run(
69-
"edgedb-py", extra_env={"EDGEDB_PYTHON_CODEGEN_PY_VER": "3.7.5"}
70+
sys.executable,
71+
"-m",
72+
"edgedb.codegen",
73+
extra_env={"EDGEDB_PYTHON_CODEGEN_PY_VER": "3.7.5"},
7074
)
7175
await run(
72-
"edgedb-py",
76+
sys.executable,
77+
"-m",
78+
"edgedb.codegen",
7379
"--target",
7480
"blocking",
7581
"--no-skip-pydantic-validation",
7682
extra_env={"EDGEDB_PYTHON_CODEGEN_PY_VER": "3.9.2"},
7783
)
7884
await run(
79-
"edgedb-py",
85+
sys.executable,
86+
"-m",
87+
"edgedb.codegen",
8088
"--target",
8189
"async",
8290
"--file",

0 commit comments

Comments
 (0)