Merge "openstack-charms: align to Ubuntu Pythons"

This commit is contained in:
Zuul 2024-08-02 12:39:46 +00:00 committed by Gerrit Code Review
commit 6201126a7e

View File

@ -622,66 +622,44 @@
- project-template: - project-template:
name: openstack-python3-charm-jobs name: openstack-python3-charm-jobs
# NOTE(gmann): We are using this generic template for python version # NOTE(coreycb,jamespage): This template is used in OpenStack Charms since
# testing. When a new development cycle starts, we need to do two things: # stable/2023.1. Charm unit tests should be aligned to the Python version
# 1. Update this template for the python version jobs as per the # found in the Ubuntu releases they support.
# new development cycle tetsing runtime defined by TC
# https://governance.openstack.org/tc/reference/runtimes/
# Use the 'branches' variant to run the applicable python version
# jobs.
# 2. Make sure the previous cycle applicable jobs continue to run for
# the new stable branch. Use the 'branches' variant to run the
# applicable python version jobs.
# #
# NOTE(coreycb): This template is used in openstack charms since # Ubuntu 20.04 LTS - Python 3.8
# stable/2023.1. While the stable/2023.1 and stable/2023.2 charm branches # Ubuntu 22.04 LTS - Python 3.10
# should support py311 unit tests, they do not. They need to continue # Ubuntu 24.04 LTS - Python 3.12
# supporting py310. #
# As this template is only used from stable/2023.1 onwards, the minimum
# Python version this template needs to support is Python 3.10 as early
# releases of the charms are configured directly in each repository.
#
# This template should *not* be updated in-line with the agreed testing
# runtimes for the rest of the OpenStack projects.
description: | description: |
Runs unit tests for an OpenStack Charm project under the CPython Runs unit tests for an OpenStack Charm project under the CPython
version 3 releases designated for testing the latest release. version 3 releases designated for testing the latest release.
check: check:
jobs: jobs:
- openstack-tox-pep8 - openstack-tox-pep8
- openstack-tox-py38:
branches:
- stable/2023.1
- stable/2023.2
- stable/2024.1
- openstack-tox-py39:
branches:
- master
- openstack-tox-py310: - openstack-tox-py310:
branches: branches:
- stable/2023.1 - stable/2023.1
- stable/2023.2 - stable/2023.2
- openstack-tox-py311:
branches:
- stable/2024.1 - stable/2024.1
- master
# py3.12 testing is added as non voting from 2024.2 release onwards.
- openstack-tox-py312: - openstack-tox-py312:
branches: branches:
- master - master
voting: false
gate: gate:
jobs: jobs:
- openstack-tox-pep8 - openstack-tox-pep8
- openstack-tox-py38:
branches:
- stable/2023.1
- stable/2023.2
- stable/2024.1
- openstack-tox-py39:
branches:
- master
- openstack-tox-py310: - openstack-tox-py310:
branches: branches:
- stable/2023.1 - stable/2023.1
- stable/2023.2 - stable/2023.2
- openstack-tox-py311:
branches:
- stable/2024.1 - stable/2024.1
- openstack-tox-py312:
branches:
- master - master
- project-template: - project-template: