diff --git a/.zuul.yaml b/.zuul.yaml index ec9ee7e8..1607831c 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -10,6 +10,7 @@ - nfv-tox-pep8 - nfv-tox-py27 - nfv-tox-py36 + - nfv-tox-py39 - nfv-tox-pylint - nova-api-proxy-tox-pep8 - nova-api-proxy-tox-pylint @@ -19,6 +20,7 @@ - nfv-tox-pep8 - nfv-tox-py27 - nfv-tox-py36 + - nfv-tox-py39 - nfv-tox-pylint - nova-api-proxy-tox-pep8 - nova-api-proxy-tox-pylint @@ -50,6 +52,20 @@ bindep_profile: test py36 python_version: 3.6 +- job: + name: nfv-tox-py39 + parent: tox-py39 + description: Run py39 for nfv + nodeset: debian-bullseye + required-projects: + - starlingx/fault + - starlingx/root + vars: + tox_envlist: py39 + tox_extra_args: -c nfv/tox.ini + bindep_profile: test py39 + python_version: 3.9 + - job: name: nfv-tox-pep8 parent: tox diff --git a/nfv/tox.ini b/nfv/tox.ini index 4aa64b8d..937a544c 100644 --- a/nfv/tox.ini +++ b/nfv/tox.ini @@ -10,7 +10,7 @@ # and then run "tox" from this directory. [tox] toxworkdir = /tmp/{env:USER}_nfvtox -envlist = pep8,py27,py36,pylint +envlist = pep8,py27,py36,py39,pylint skipsdist = True stxdir = {toxinidir}/../.. @@ -154,6 +154,23 @@ commands = cp -v {[nfv]nfv_base_dir}/nfv-tests/nfv_unit_tests/test_data/nfv_vim_ stestr --test-path={[nfv]nfv_base_dir}/nfv-tests/nfv_unit_tests/tests run '{posargs}' stestr slowest +[testenv:py39] +basepython = python3.9 +install_command = pip install \ + -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt} \ + {opts} {packages} +deps = {[nfv]deps} + coverage + fixtures + mock + stestr + testtools +setenv = PYTHONDONTWRITEBYTECODE=True +commands = cp -v {[nfv]nfv_base_dir}/nfv-tests/nfv_unit_tests/test_data/nfv_vim_db_stx_19.12 {envdir}/ + stestr --test-path={[nfv]nfv_base_dir}/nfv-tests/nfv_unit_tests/tests run '{posargs}' + stestr slowest + + [testenv:cover] basepython = python3 deps = {[nfv]deps}