Skip to content

Commit

Permalink
feature: allow local runs on windows/macOS
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mayeut committed Dec 28, 2021
1 parent d6bede5 commit 0f9b376
Show file tree
Hide file tree
Showing 6 changed files with 756 additions and 660 deletions.
4 changes: 1 addition & 3 deletions bin/run_tests.py
Expand Up @@ -16,15 +16,13 @@
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",
Expand Down

0 comments on commit 0f9b376

Please sign in to comment.