From 32744d9704b5bca0d3e67ab309d23f829472a4cb Mon Sep 17 00:00:00 2001 From: "Dr. Jens Harbott" Date: Sun, 2 Apr 2023 11:50:08 +0200 Subject: [PATCH] Add requirements-tox-py311-check-uc job Start checking requirements on python3.11 to get early warnings about upcoming issues. Non-voting for now. Change-Id: I7713029b95beb69d87f5cba66997fd4ba422c6b0 --- .zuul.d/jobs.yaml | 15 +++++++++++++++ .zuul.d/project.yaml | 2 ++ tox.ini | 5 +++++ 3 files changed, 22 insertions(+) diff --git a/.zuul.d/jobs.yaml b/.zuul.d/jobs.yaml index 6e9bda489f..af61d4e8a1 100644 --- a/.zuul.d/jobs.yaml +++ b/.zuul.d/jobs.yaml @@ -42,6 +42,21 @@ files: ^upper-constraints.*txt$ vars: tox_envlist: py310-check-uc + +- job: + name: requirements-tox-py311-check-uc + # TODO: use the openstack-tox-py311 job as the parent + # when it becomes available in openstack/openstack-zuul-jobs + parent: openstack-tox + description: | + Run test for requirements project. + + Uses tox with the ``py311-check-uc`` environment. + files: ^upper-constraints.*txt$ + vars: + python_version: '3.11' + tox_envlist: py311-check-uc + - job: name: requirements-tox-validate-projects parent: openstack-tox diff --git a/.zuul.d/project.yaml b/.zuul.d/project.yaml index 0407a5f1a3..e095ab231a 100644 --- a/.zuul.d/project.yaml +++ b/.zuul.d/project.yaml @@ -31,6 +31,8 @@ - requirements-tox-py38-check-uc - requirements-tox-py39-check-uc - requirements-tox-py310-check-uc + - requirements-tox-py311-check-uc: + voting: false - requirements-tox-validate-projects: voting: false - cross-aodh-py310 diff --git a/tox.ini b/tox.ini index 45cccf2227..25daabfcad 100644 --- a/tox.ini +++ b/tox.ini @@ -35,6 +35,11 @@ basepython = python3.10 deps = -r{toxinidir}/upper-constraints.txt commands = check-conflicts {toxinidir}/upper-constraints.txt {toxinidir}/upper-constraints-xfails.txt +[testenv:py311-check-uc] +basepython = python3.11 +deps = -r{toxinidir}/upper-constraints.txt +commands = check-conflicts {toxinidir}/upper-constraints.txt {toxinidir}/upper-constraints-xfails.txt + [testenv:venv] commands = {posargs}