1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py{35,36,37,38,39,310}-{mpi,}-{oldpt,},flake8,pylint,docs,check-manifest,checkreadme
[testenv]
commands =
oldpt: py.test-3 -p pytester --ignore=docs --cov={envsitepackagesdir}/pytest_mpi --runpytest=subprocess {posargs}
!oldpt: py.test-3 -p pytester --cov={envsitepackagesdir}/pytest_mpi --runpytest=subprocess {posargs}
deps =
pytest
pytest-cov
!oldpt: sybil
-c known_broken_constraints.txt
mpi: mpi4py
oldpt: -c old_pytest.txt
basepython =
py35: {env:TOXPYTHON:python3.5}
py36: {env:TOXPYTHON:python3.6}
py37: {env:TOXPYTHON:python3.7}
py38: {env:TOXPYTHON:python3.8}
py39: {env:TOXPYTHON:python3.9}
py310: {env:TOXPYTHON:python3.10}
py311: {env:TOXPYTHON:python3.11}
py312: {env:TOXPYTHON:python3.12}
flake8: {env:TOXPYTHON:python3}
pylint: {env:TOXPYTHON:python3}
docs: {env:TOXPYTHON:python3}
check-manifest: {env:TOXPYTHON:python3}
checkreadme: {env:TOXPYTHON:python3}
allowlist_externals=py.test-3
[testenv:docs]
changedir=docs
deps=-rdoc-requirements.txt
commands=
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:flake8]
deps=flake8
commands=
flake8 --exclude={envsitepackagesdir}/pytest_mpi/_version.py {envsitepackagesdir}/pytest_mpi
[testenv:pylint]
deps=pylint
commands=
pylint {envsitepackagesdir}/pytest_mpi
[testenv:check-manifest]
deps=check-manifest
setenv =
CHECK_MANIFEST=true
commands=
check-manifest
[testenv:checkreadme]
deps=readme_renderer
commands=
python setup.py check -s -r
|