From f397e716a6fa5564b8899828bd7d8d854cb254df Mon Sep 17 00:00:00 2001 From: William Ayd Date: Tue, 24 Sep 2024 15:43:49 -0400 Subject: [PATCH] Add pytest_xdist for parallel test execution (#338) --- environment.yml | 1 + pyproject.toml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 2308c294..2b32f211 100644 --- a/environment.yml +++ b/environment.yml @@ -15,6 +15,7 @@ dependencies: - pyarrow - python - pytest + - pytest_xdist - scikit-build-core - sphinx - pre-commit diff --git a/pyproject.toml b/pyproject.toml index e1f8a2a9..479feaa5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,9 +66,10 @@ known_first_party = "pantab" build = "cp39-*64 cp310-*64 cp311-*64 cp312-*64" skip = "*musllinux*" -test-command = "python -m pytest {project}/tests" +test-command = "python -m pytest -n auto {project}/tests" test-requires = [ "pytest", + "pytest-xdist[psutil]", "pandas>=2.0.0", "polars~=1.2.0", "narwhals",