mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-15 18:42:27 +03:00
Run template tests in parallel in pytest-xdist (#4275)
This commit is contained in:
parent
a1f2a670d9
commit
32474ab367
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -30,7 +30,7 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install -r requirements.txt
|
run: pip install -r requirements.txt
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest tests
|
run: pytest -n auto tests
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
@ -13,6 +13,7 @@ pre-commit==3.2.2
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
tox==4.4.12
|
tox==4.4.12
|
||||||
pytest==7.3.1
|
pytest==7.3.1
|
||||||
|
pytest-xdist==3.2.1
|
||||||
pytest-cookies==0.7.0
|
pytest-cookies==0.7.0
|
||||||
pytest-instafail==0.5.0
|
pytest-instafail==0.5.0
|
||||||
pyyaml==6.0
|
pyyaml==6.0
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -5,7 +5,7 @@ envlist = py311,black-template
|
||||||
[testenv]
|
[testenv]
|
||||||
deps = -rrequirements.txt
|
deps = -rrequirements.txt
|
||||||
passenv = AUTOFIXABLE_STYLES
|
passenv = AUTOFIXABLE_STYLES
|
||||||
commands = pytest {posargs:./tests}
|
commands = pytest -n auto {posargs:./tests}
|
||||||
|
|
||||||
[testenv:black-template]
|
[testenv:black-template]
|
||||||
deps = black
|
deps = black
|
||||||
|
|
Loading…
Reference in New Issue
Block a user