Skip to content

Commit 4d67996

Browse files
bcantonijacalata
andauthored
Add pytest-xdist plugin to speed up tests (#1681)
Running locally on my Mac: - pytest: 1min 20sec - pytest -n auto: 15sec https://pypi.org/project/pytest-xdist/ Co-authored-by: Jac <[email protected]>
1 parent fe97749 commit 4d67996

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Test with pytest
4949
if: always()
5050
run: |
51-
pytest test
51+
pytest test -n auto
5252
5353
- name: Test build
5454
if: always()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ repository = "https://github.com/tableau/server-client-python"
3333

3434
[project.optional-dependencies]
3535
test = ["black==24.10", "build", "mypy==1.4", "pytest>=7.0", "pytest-cov", "pytest-subtests",
36-
"requests-mock>=1.0,<2.0", "types-requests>=2.32.4.20250913"]
36+
"pytest-xdist", "requests-mock>=1.0,<2.0", "types-requests>=2.32.4.20250913"]
3737
[tool.black]
3838
line-length = 120
3939
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']

0 commit comments

Comments
 (0)