[CI] Parallelize unit tests in CI (#1219)

This commit is contained in:
Mingyi
2024-08-25 21:54:02 -07:00
committed by GitHub
parent 632d506d0b
commit 97589a60a2
6 changed files with 99 additions and 75 deletions

View File

@@ -465,7 +465,7 @@ def run_unittest_files(files: List[str], timeout_per_file: float):
def run_one_file(filename):
filename = os.path.join(os.getcwd(), filename)
print(f"\n\nRun {filename}\n\n", flush=True)
print(f"\n\nRun:\npython3 {filename}\n\n", flush=True)
process = subprocess.Popen(
["python3", filename], stdout=None, stderr=None, env=os.environ
)