taskflow/tox.ini
Sahid Orentino Ferdjaoui 9a30e5dc37 add python 3.7 unit test job
See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Story: #2004073
Co-authored-by: Corey Bryant <corey.bryant@canonical.com>
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
Change-Id: Ibc7749261119752c4e3a4854c7ce5be52a3b5d26
2019-02-26 15:55:51 +00:00

102 lines
2.1 KiB
INI

[tox]
minversion = 2.0
envlist =
cover,
docs,
pep8,
py27,
py35,
py37,
pylint,
update-states
[testenv]
setenv =
VIRTUAL_ENV={envdir}
BRANCH_NAME=master
CLIENT_NAME=taskflow
# We need to install a bit more than just `test' because those drivers have
# custom tests that we always run
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
stestr run {posargs}
[testenv:docs]
basepython = python3
deps =
{[testenv]deps}
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -E -W -b html doc/source doc/build/html
doc8 doc/source
[testenv:update-states]
basepython = python3
deps =
{[testenv]deps}
pydot3
commands = {toxinidir}/tools/update_states.sh
[testenv:pep8]
basepython = python3
commands =
flake8 {posargs}
[testenv:pylint]
basepython = python3
deps =
{[testenv]deps}
pylint==0.26.0
commands = pylint --rcfile=pylintrc taskflow
[testenv:cover]
basepython = python3
deps =
{[testenv]deps}
coverage>=3.6
setenv =
{[testenv]setenv}
PYTHON=coverage run --source taskflow --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:venv]
basepython = python3
commands = {posargs}
[flake8]
builtins = _
exclude = .venv,.tox,dist,doc,*egg,.git,build,tools
ignore = E721
[hacking]
import_exceptions =
six.moves
taskflow.test.mock
unittest.mock
[doc8]
# Settings for doc8:
# Ignore doc/source/user/history.rst, it includes generated ChangeLog
# file that fails with "D000 Inline emphasis start-string without
# end-string."
ignore-path = doc/*/target,doc/*/build*
[testenv:releasenotes]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:lower-constraints]
basepython = python3
install_command = pip install {opts} {packages}
deps =
-c{toxinidir}/lower-constraints.txt
.[test,workers,zookeeper,database,redis,eventlet]