py3: Add gate for python3.9

Add python3.9 gate for nfv.

Story: 2009101
Task: 43100

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I4b2164e1b2f2f19df590b013e54f8dd42495259a
This commit is contained in:
Charles Short 2021-08-26 14:58:22 -04:00
parent 2509fc29d2
commit 0a9e537c49
2 changed files with 34 additions and 1 deletions

View File

@ -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

View File

@ -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}