diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 47 |
1 files changed, 19 insertions, 28 deletions
@@ -1,47 +1,38 @@ [tox] -envlist = py37, py38, py39, py310, pypy3, flake8, black, integration -skip_missing_interpreters = True -# Automatic envs (pyXX) will only use the python version appropriate to that -# env and ignore basepython inherited from [testenv] if we set -# ignore_basepython_conflict. -ignore_basepython_conflict = True +envlist = + py37, + py38, + py39, + py310, + pypy3, + docs, + lint, + venv, +skip_missing_interpreters = true [gh-actions] python = pypy-3.7: pypy3 [testenv] -basepython = python3 -setenv = - PYTHONPATH = {toxinidir} +description = run tests with {basepython} deps = -r{toxinidir}/test-requirements.txt +skip_install = True commands = - pip install -e . - py.test {posargs:pymemcache/test/} + python -m pytest {posargs} -[testenv:integration] -commands = - pip install -e . - py.test {posargs:pymemcache/test/ -m integration} - -[testenv:flake8] -# Avoid pulling all the base requirements only to run flake8 -deps = flake8 +[testenv:lint] +description = lint source code +deps = -r{toxinidir}/lint-requirements.txt commands = + python setup.py check --metadata --restructuredtext --strict flake8 - python setup.py check --restructuredtext - -[testenv:black] -commands = black --check . -[testenv:coverage] -commands = - py.test --cov=pymemcache - [testenv:docs] +description = invoke sphinx-build to build the HTML docs +deps = -r{toxinidir}/docs-requirements.txt commands = - pip install -r docs-requirements.txt sphinx-build -b html docs/ docs/_build/html [testenv:venv] |