Browse Source

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 python35-charm-jobs is retained since this charm is supported
on Xenial.

Change-Id: I3db9bd4e4b3b09b321f250eaa1bf33f6c7e3a229
Story: #2005924
Task: #34228
changes/42/673042/2
Corey Bryant 7 months ago
parent
commit
f6d8ce78bb
2 changed files with 13 additions and 2 deletions
  1. +1
    -0
      .zuul.yaml
  2. +12
    -2
      tox.ini

+ 1
- 0
.zuul.yaml View File

@@ -1,4 +1,5 @@
- project:
templates:
- python35-charm-jobs
- openstack-python3-train-jobs
- openstack-cover-jobs

+ 12
- 2
tox.ini View File

@@ -3,7 +3,7 @@
# within individual charm repos.
[tox]
skipsdist = True
envlist = pep8,py35
envlist = pep8,py37

[testenv]
setenv = VIRTUAL_ENV={envdir}
@@ -25,7 +25,17 @@ whitelist_externals = true
commands = true

[testenv:py35]
basepython = python3
basepython = python3.5
deps = -r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}

[testenv:py36]
basepython = python3.6
deps = -r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}

[testenv:py37]
basepython = python3.7
deps = -r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}


Loading…
Cancel
Save