Skip to content

Commit

Permalink
try to parallelize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Dec 22, 2023
1 parent 9437c02 commit fdfd3e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integrations/pinecone/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fdfd3e7

Please sign in to comment.