From fdfd3e7641cdf386878815a8b9ee5037b86da0df Mon Sep 17 00:00:00 2001 From: anakin87 Date: Fri, 22 Dec 2023 10:21:14 +0100 Subject: [PATCH] try to parallelize tests --- integrations/pinecone/pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integrations/pinecone/pyproject.toml b/integrations/pinecone/pyproject.toml index 506795e7f..9de2561fe 100644 --- a/integrations/pinecone/pyproject.toml +++ b/integrations/pinecone/pyproject.toml @@ -48,8 +48,9 @@ dependencies = [ "pytest-xdist", ] [tool.hatch.envs.default.scripts] -test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +# Pinecone tests are slow (require HTTP requests), so we run them in parallel +test = "pytest -n auto --dist worksteal {args:tests}" +test-cov = "coverage run -m pytest -n auto --dist worksteal {args:tests}" cov-report = [ "- coverage combine", "coverage report",