Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelize testing #487

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
running_out = 0
for file in here.iterdir():
if file.is_file() and file.name.startswith("test"):
cmd = f"pytest {file} " + flags
cmd = f"pytest -n 2 {file} " + flags
out = subprocess.run(cmd, shell=True).returncode
running_out = max(running_out, out)
sys.exit(running_out)
1 change: 1 addition & 0 deletions test/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ beartype
jaxlib
optax
pytest
pytest-xdist
scipy
tqdm
Loading