Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place for all of the Tested Runtimes for Train. See the Train python3-updates goal document for details: https://governance.openstack.org/tc/goals/train/python3-updates.html Note that openstack-python35-jobs is retained since this charm is supported on Xenial. Change-Id: I80a54de2107c44694b5bd062988b67aae3eda1fe Story: #2005924 Task: #34228
This commit is contained in:
parent
ab762132f8
commit
b08168a166
|
@ -2,3 +2,4 @@
|
||||||
templates:
|
templates:
|
||||||
- python35-charm-jobs
|
- python35-charm-jobs
|
||||||
- openstack-cover-jobs
|
- openstack-cover-jobs
|
||||||
|
- openstack-python3-train-jobs
|
||||||
|
|
7
tox.ini
7
tox.ini
|
@ -3,7 +3,7 @@
|
||||||
# within individual charm repos.
|
# within individual charm repos.
|
||||||
[tox]
|
[tox]
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
envlist = pep8,py3
|
envlist = pep8,py37
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
@ -37,6 +37,11 @@ basepython = python3.6
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = stestr run {posargs}
|
commands = stestr run {posargs}
|
||||||
|
|
||||||
|
[testenv:py37]
|
||||||
|
basepython = python3.7
|
||||||
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
commands = stestr run {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
|
Loading…
Reference in New Issue