From 88f43a8ee7e045f86b345e940be1ec09b46c607c Mon Sep 17 00:00:00 2001 From: Philip Loche Date: Wed, 12 Jun 2024 23:02:45 +0200 Subject: [PATCH] Parallelize tests across multiple CPUs (#252) --------- Co-authored-by: frostedoyster --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 6469c1a3c..c78878cc8 100644 --- a/tox.ini +++ b/tox.ini @@ -61,12 +61,14 @@ passenv = * deps = pytest pytest-cov + pytest-xdist changedir = tests extras = soap-bpnn # this model is used in the package tests allowlist_externals = bash commands_pre = bash {toxinidir}/tests/resources/generate-outputs.sh commands = pytest \ + --numprocesses=auto \ --cov={env_site_packages_dir}/metatrain \ --cov-append \ --cov-report= \