Run tosca-parser tests with Python 3.10
... because Python 3.7 is no longer tested. Python 3.10 is selected from the supported runtime versions because it's the default python version in Ubuntu Jammy. This also fixes a few problems causing failure in the test. Change-Id: Ida855a8438fe980998240c5f09cf7826b9ca78dc
This commit is contained in:
parent
da40f68136
commit
c983422355
@ -10,11 +10,11 @@
|
|||||||
voting: false
|
voting: false
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: heat-translator-tox-py37-tp
|
name: heat-translator-tox-py310-tp
|
||||||
parent: openstack-tox-py37
|
parent: openstack-tox-py310
|
||||||
description: |
|
description: |
|
||||||
Run tests for heat-translator project.
|
Run tests for heat-translator project.
|
||||||
|
|
||||||
Uses tox with the ``py37-tp`` environment.
|
Uses tox with the ``py310-tp`` environment.
|
||||||
vars:
|
vars:
|
||||||
tox_envlist: py37-tp
|
tox_envlist: py310-tp
|
||||||
|
@ -9,3 +9,6 @@ python-subunit>=1.0.0 # Apache-2.0/BSD
|
|||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||||
testscenarios>=0.4 # Apache-2.0/BSD
|
testscenarios>=0.4 # Apache-2.0/BSD
|
||||||
testtools>=2.2.0 # MIT
|
testtools>=2.2.0 # MIT
|
||||||
|
# TODO(tkajinam): Remove this once the following fix is released.
|
||||||
|
# https://github.com/testing-cabal/testrepository/pull/48
|
||||||
|
extras>=1.0.0 # MIT
|
||||||
|
8
tox.ini
8
tox.ini
@ -43,10 +43,12 @@ commands =
|
|||||||
oslo_debug_helper -t translator/hot/tests {posargs}
|
oslo_debug_helper -t translator/hot/tests {posargs}
|
||||||
oslo_debug_helper -t translator/hot/tosca/tests {posargs}
|
oslo_debug_helper -t translator/hot/tosca/tests {posargs}
|
||||||
|
|
||||||
[testenv:py37-tp]
|
[testenv:py310-tp]
|
||||||
basepython = python37
|
basepython = python310
|
||||||
|
allowlist_externals =
|
||||||
|
bash
|
||||||
commands =
|
commands =
|
||||||
./run_py-tosca-parser-master.sh
|
bash ./run_py-tosca-parser-master.sh
|
||||||
python setup.py test --slowest --testr-args='{posargs}'
|
python setup.py test --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
Loading…
Reference in New Issue
Block a user