Skip to content

Commit b51baa0

Browse files
committed
Add pytest-xdist plugin to speed up tests
Running locally on my Mac: - pytest: 1min 20sec - pytest -n auto: 15sec https://pypi.org/project/pytest-xdist/
1 parent 4417beb commit b51baa0

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.8", "build", "mypy==1.4", "pytest>=7.0", "pytest-cov", "pytest-subtests",
36-
"requests-mock>=1.0,<2.0"]
36+
"pytest-xdist", "requests-mock>=1.0,<2.0"]
3737

3838
[tool.black]
3939
line-length = 120

0 commit comments

Comments
 (0)