feature: allow local runs on windows/macOS (#974)
* feature: allow local runs on windows/macOS Cache python installations to a user cache folder using platformdirs. The build environment is now a virtual environment to allow proper isolation. Allows to run tests in parallel. Co-authored-by: Joe Rickerby <joerick@mac.com>
This commit is contained in:
co-authored by
Joe Rickerby
parent
81243337fd
commit
ab13f7a9de
+1
-3
@@ -16,15 +16,13 @@ if __name__ == "__main__":
|
||||
unit_test_args += ["--run-docker"]
|
||||
subprocess.run(unit_test_args, check=True)
|
||||
|
||||
xdist_test_args = ["-n", "2"] if sys.platform.startswith("linux") else []
|
||||
|
||||
# run the integration tests
|
||||
subprocess.run(
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"pytest",
|
||||
*xdist_test_args,
|
||||
"--numprocesses=2",
|
||||
"-x",
|
||||
"--durations",
|
||||
"0",
|
||||
|
||||
Reference in New Issue
Block a user