Run template tests in parallel in pytest-xdist (#4275)

This commit is contained in:
Bruno Alla 2023-04-15 15:53:31 +01:00 committed by GitHub
parent a1f2a670d9
commit 32474ab367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,7 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: pytest tests
run: pytest -n auto tests
docker:
strategy:

View File

@ -13,6 +13,7 @@ pre-commit==3.2.2
# ------------------------------------------------------------------------------
tox==4.4.12
pytest==7.3.1
pytest-xdist==3.2.1
pytest-cookies==0.7.0
pytest-instafail==0.5.0
pyyaml==6.0

View File

@ -5,7 +5,7 @@ envlist = py311,black-template
[testenv]
deps = -rrequirements.txt
passenv = AUTOFIXABLE_STYLES
commands = pytest {posargs:./tests}
commands = pytest -n auto {posargs:./tests}
[testenv:black-template]
deps = black