Remote pytest_runtestloop requires at least 2 tests, or a test and a shutdown command. In case of inter test locking, for example using a file lock, the tests could deadlock, since the shutdown command would not be enqueued, and the last test of a worker would never finish, and would not allow another worker to make progress.
59 lines
1.2 KiB
INI
59 lines
1.2 KiB
INI
[tox]
|
|
# if you change the envlist, please update .travis.yml file as well
|
|
envlist=
|
|
linting
|
|
py{27,34,35,36}-pytest{30,31,32,33,36,38}
|
|
py{27,36}-pytest36-pexpect
|
|
py{27,36}-pytest{master,features}
|
|
|
|
|
|
[testenv]
|
|
changedir=testing
|
|
passenv = USER USERNAME
|
|
deps =
|
|
pycmd
|
|
# to avoid .eggs
|
|
setuptools_scm
|
|
pytest30: pytest~=3.0.5
|
|
pytest31: pytest~=3.1.0
|
|
pytest32: pytest~=3.2.0
|
|
pytest33: pytest~=3.3.0
|
|
pytest36: pytest~=3.6.0
|
|
pytest38: pytest~=3.8.0
|
|
pytestmaster: git+https://github.com/pytest-dev/pytest.git@master
|
|
pytestfeatures: git+https://github.com/pytest-dev/pytest.git@features
|
|
pexpect: pexpect
|
|
filelock
|
|
platform=
|
|
pexpect: linux|darwin
|
|
commands=
|
|
# always clean to avoid code unmarshal mismatch on old python/pytest
|
|
py.cleanup -aq
|
|
pytest {posargs}
|
|
|
|
[testenv:linting]
|
|
skipsdist = True
|
|
usedevelop = True
|
|
deps =
|
|
pre-commit
|
|
commands = pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[testenv:release]
|
|
changedir=
|
|
decription = do a release, required posarg of the version number
|
|
basepython = python3.6
|
|
skipsdist = True
|
|
usedevelop = True
|
|
passenv = *
|
|
deps =
|
|
towncrier
|
|
commands =
|
|
towncrier --version {posargs} --yes
|
|
|
|
[pytest]
|
|
addopts = -rsfxX
|
|
|
|
[flake8]
|
|
max-line-length = 120
|
|
ignore = E203,W503
|