Skip to content

Commit

Permalink
Merge pull request #298 from coreycb/charm-unit-jobs-py311
Browse files Browse the repository at this point in the history
Add tox-py311 job and project templates
  • Loading branch information
freyes authored Oct 19, 2023
2 parents 4a313c8 + 174e4dd commit dde2753
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
18 changes: 17 additions & 1 deletion zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,22 @@
tox_envlist: py310
python_version: '3.10'

- job:
name: tox-py311
parent: tox
description: |
Run unit tests for a Python project under cPython version 3.11.
Uses tox with the ``py311`` environment.
nodeset:
nodes:
- name: jammy-medium
label: jammy-medium
vars:
tox_envlist: py311
python_version: '3.11'

- job:
name: charm-build
description: Build a source charm into a deployable charm
Expand Down Expand Up @@ -466,7 +482,7 @@
description: Run a functional test against mantic-bobcat
parent: func-target-pre-jobs
dependencies:
- name: tox-py310
- name: tox-py311
soft: true
- osci-lint
- charm-build
Expand Down
26 changes: 25 additions & 1 deletion zuul.d/project-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
name: openstack-tox-py310
description: |
placeholder
- project-template:
name: openstack-tox-py311
description: |
placeholder
- project-template:
name: openstack-cover-jobs
description: |
Expand Down Expand Up @@ -294,8 +298,15 @@
# RUN A 3.10 JOB ON ZOSCI.
#- tox-py310:
# branches:
# - master
# - stable/2023.1
# NOTE(ajkavanagh) disabled until we can get zuul, ansible and py311 on
# jammy to play together.
# NOTE(icey) BUT REALLY, DO NOT ENABLE THE FOLLOWING UNTIL YOU KNOW WE CAN
# RUN A 3.11 JOB ON ZOSCI.
#- tox-py311:
# branches:
# - master
# - stable/2023.2
- project-template:
name: charm-unit-jobs-py35
description: |
Expand Down Expand Up @@ -354,6 +365,19 @@
# NOTE(icey) BUT REALLY, DO NOT ENABLE THE FOLLOWING UNTIL YOU KNOW WE CAN
# RUN A 3.10 JOB ON ZOSCI.
#- tox-py310
- project-template:
name: charm-unit-jobs-py311
description: |
The default set of unit tests and lint checks for the OpenStack Charms
check:
jobs:
- charm-build
- osci-lint
# NOTE(ajkavanagh) disabled until we can get zuul, ansible and py311 on
# jammy to play together.
# NOTE(icey) BUT REALLY, DO NOT ENABLE THE FOLLOWING UNTIL YOU KNOW WE CAN
# RUN A 3.11 JOB ON ZOSCI.
#- tox-py311
- project-template:
name: charm-yoga-unit-jobs
description: |
Expand Down

0 comments on commit dde2753

Please sign in to comment.