Update openstack-python3-charm-jobs py3 branches

Enable py311 unit tests for master branch only and run py38/py310
for stable/2023.1 and stable/2023.2 branches.

We found that we have an issue running py311 tests on debian,
and have decided to fix it in master branches only.

Change-Id: I52801caecab3db55b80e041b778a5a6cbaea9af8
This commit is contained in:
Corey Bryant 2023-10-23 11:41:03 -04:00
parent bd597347e8
commit 6440c5a360

View File

@ -632,20 +632,43 @@
# 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
# stable/2023.1. While the stable/2023.1 and stable/2023.2 charm branches
# should support py311 unit tests, they do not. They need to continue
# supporting py310.
description: |
Runs unit tests for an OpenStack Charm project under the CPython
version 3 releases designated for testing the latest release.
This is supposed to be used in master gate.
check:
jobs:
- openstack-tox-pep8
- openstack-tox-py38
- openstack-tox-py311
- openstack-tox-py38:
branches:
- stable/2023.1
- stable/2023.2
- master
- openstack-tox-py310:
branches:
- stable/2023.1
- stable/2023.2
- openstack-tox-py311:
branches:
- master
gate:
jobs:
- openstack-tox-pep8
- openstack-tox-py38
- openstack-tox-py311
- openstack-tox-py38:
branches:
- stable/2023.1
- stable/2023.2
- openstack-tox-py310:
branches:
- stable/2023.1
- stable/2023.2
- openstack-tox-py311:
branches:
- master
- project-template:
name: openstack-python3-jobs