From 9313119646759d38bbfd2679938bb0c9476cd47b Mon Sep 17 00:00:00 2001 From: Brian Rosmaita Date: Mon, 28 Apr 2025 15:01:13 -0400 Subject: [PATCH] Update python versions for testing Given the supported python runtimes for 2025.2 (Flamingo) [0]: - modify .zuul.yaml to run the functional jobs in py310 and py312 (py311 testing is not required) - update tox.ini to support unit and funcitonal tests for: * python3 (default system python3) * python3.10 (minimum supported) * python3.11 (supported) * python3.12 (maximum supported) * python3.13 (will be default in Debian 13 before Flamingo release) The zuul, tox config in stable branches are unchanged. [0] https://governance.openstack.org/tc/reference/runtimes/2025.2.html Change-Id: Ida26296f0bf95474f889473410179044a930ee86 --- .zuul.yaml | 4 ++-- tox.ini | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 4ea001e99ad..4e23f70343b 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -14,7 +14,7 @@ - cinder-mypy - cinder-tox-bandit-baseline: voting: false - - openstack-tox-functional-py39: + - openstack-tox-functional-py310: irrelevant-files: &functional-irrelevant-files - ^.*\.rst$ - ^cinder/locale/.*$ @@ -23,7 +23,7 @@ - ^doc/.*$ - ^releasenotes/.*$ - ^reno.yaml$ - - openstack-tox-functional-py311: + - openstack-tox-functional-py312: irrelevant-files: *functional-irrelevant-files - cinder-rally-task: voting: false diff --git a/tox.ini b/tox.ini index b10162a27da..916866e7221 100644 --- a/tox.ini +++ b/tox.ini @@ -42,7 +42,7 @@ passenv = *_proxy *_PROXY -[testenv:py{3,38,39,310,311,312}] +[testenv:py{3,310,311,312,313}] # NOTE: Do not move the constraints from the install_command into deps, as that # may result in tox using unconstrained/untested dependencies. # We use "usedevelop = True" for tox jobs (except bindep), so tox does 2 @@ -62,7 +62,7 @@ install_command = {[testenv:py3]install_command} setenv = OS_TEST_PATH = ./cinder/tests/functional -[testenv:functional-py{3,38,39,310,311,312}] +[testenv:functional-py{3,310,311,312,313}] install_command = {[testenv:functional]install_command} setenv = {[testenv:functional]setenv}