zuul-jobs/zuul-tests.d/python-roles-jobs.yaml
Monty Taylor 7a58814cda Support .python-version files in ensure-python
We have support for installing python from pyenv, but it currently
requires setting the python version explicitly as an argument. If
the repo in question has a .python-version file, we shouldn't need to
require the user to provide that version a second time. Instead, we can
read from the file for the install step.

Change-Id: Ic4c2d3fc7f55169cec5211010fc3a9622fa324d1
2024-06-25 14:30:46 -07:00

242 lines
7.9 KiB
YAML

- job:
name: zuul-jobs-test-build-python-release-jobs
description: Test the build-python-release-jobs role
files:
- roles/build-python-release/.*
- setup.cfg
- setup.py
vars:
role_name: build-python-release
release_python: python3
pre-run: playbooks/python/pre.yaml
run: test-playbooks/simple-role-test.yaml
tags: all-platforms
- job:
name: zuul-jobs-test-build-python-release-jobs-centos-9-stream
description: Test the build-python-release-jobs role on centos-9-stream
parent: zuul-jobs-test-build-python-release-jobs
tags: auto-generated
nodeset:
nodes:
- name: centos-9-stream
label: centos-9-stream
- job:
name: zuul-jobs-test-build-python-release-jobs-debian-bookworm
description: Test the build-python-release-jobs role on debian-bookworm
parent: zuul-jobs-test-build-python-release-jobs
tags: auto-generated
nodeset:
nodes:
- name: debian-bookworm
label: debian-bookworm
- job:
name: zuul-jobs-test-build-python-release-jobs-debian-bullseye
description: Test the build-python-release-jobs role on debian-bullseye
parent: zuul-jobs-test-build-python-release-jobs
tags: auto-generated
nodeset:
nodes:
- name: debian-bullseye
label: debian-bullseye
- job:
name: zuul-jobs-test-build-python-release-jobs-ubuntu-focal
description: Test the build-python-release-jobs role on ubuntu-focal
parent: zuul-jobs-test-build-python-release-jobs
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-focal
label: ubuntu-focal
- job:
name: zuul-jobs-test-build-python-release-jobs-ubuntu-jammy
description: Test the build-python-release-jobs role on ubuntu-jammy
parent: zuul-jobs-test-build-python-release-jobs
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-jammy
label: ubuntu-jammy
- job:
name: zuul-jobs-test-build-python-release-jobs-ubuntu-noble
description: Test the build-python-release-jobs role on ubuntu-noble
parent: zuul-jobs-test-build-python-release-jobs
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-noble
label: ubuntu-noble
- job:
name: zuul-jobs-test-ensure-python-pyenv
description: Test the ensure-python role with pyenv
files:
- roles/ensure-python/.*
run: test-playbooks/ensure-python-pyenv.yaml
tags: all-platforms
- job:
name: zuul-jobs-test-ensure-python-pyenv-centos-9-stream
description: Test the ensure-python role with pyenv on centos-9-stream
parent: zuul-jobs-test-ensure-python-pyenv
tags: auto-generated
nodeset:
nodes:
- name: centos-9-stream
label: centos-9-stream
- job:
name: zuul-jobs-test-ensure-python-pyenv-debian-bookworm
description: Test the ensure-python role with pyenv on debian-bookworm
parent: zuul-jobs-test-ensure-python-pyenv
tags: auto-generated
nodeset:
nodes:
- name: debian-bookworm
label: debian-bookworm
- job:
name: zuul-jobs-test-ensure-python-pyenv-debian-bullseye
description: Test the ensure-python role with pyenv on debian-bullseye
parent: zuul-jobs-test-ensure-python-pyenv
tags: auto-generated
nodeset:
nodes:
- name: debian-bullseye
label: debian-bullseye
- job:
name: zuul-jobs-test-ensure-python-pyenv-ubuntu-focal
description: Test the ensure-python role with pyenv on ubuntu-focal
parent: zuul-jobs-test-ensure-python-pyenv
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-focal
label: ubuntu-focal
- job:
name: zuul-jobs-test-ensure-python-pyenv-ubuntu-jammy
description: Test the ensure-python role with pyenv on ubuntu-jammy
parent: zuul-jobs-test-ensure-python-pyenv
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-jammy
label: ubuntu-jammy
- job:
name: zuul-jobs-test-ensure-python-pyenv-ubuntu-noble
description: Test the ensure-python role with pyenv on ubuntu-noble
parent: zuul-jobs-test-ensure-python-pyenv
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-noble
label: ubuntu-noble
- job:
name: zuul-jobs-test-ensure-python-pyenv-python-version
description: Test the ensure-python role with pyenv and a python-version file
files:
- roles/ensure-python/.*
run: test-playbooks/ensure-python-pyenv-python-version.yaml
tags: all-platforms
- job:
name: zuul-jobs-test-ensure-python-pyenv-python-version-centos-9-stream
description: Test the ensure-python role with pyenv and a python-version file
on centos-9-stream
parent: zuul-jobs-test-ensure-python-pyenv-python-version
tags: auto-generated
nodeset:
nodes:
- name: centos-9-stream
label: centos-9-stream
- job:
name: zuul-jobs-test-ensure-python-pyenv-python-version-debian-bookworm
description: Test the ensure-python role with pyenv and a python-version file
on debian-bookworm
parent: zuul-jobs-test-ensure-python-pyenv-python-version
tags: auto-generated
nodeset:
nodes:
- name: debian-bookworm
label: debian-bookworm
- job:
name: zuul-jobs-test-ensure-python-pyenv-python-version-debian-bullseye
description: Test the ensure-python role with pyenv and a python-version file
on debian-bullseye
parent: zuul-jobs-test-ensure-python-pyenv-python-version
tags: auto-generated
nodeset:
nodes:
- name: debian-bullseye
label: debian-bullseye
- job:
name: zuul-jobs-test-ensure-python-pyenv-python-version-ubuntu-focal
description: Test the ensure-python role with pyenv and a python-version file
on ubuntu-focal
parent: zuul-jobs-test-ensure-python-pyenv-python-version
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-focal
label: ubuntu-focal
- job:
name: zuul-jobs-test-ensure-python-pyenv-python-version-ubuntu-jammy
description: Test the ensure-python role with pyenv and a python-version file
on ubuntu-jammy
parent: zuul-jobs-test-ensure-python-pyenv-python-version
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-jammy
label: ubuntu-jammy
- job:
name: zuul-jobs-test-ensure-python-pyenv-python-version-ubuntu-noble
description: Test the ensure-python role with pyenv and a python-version file
on ubuntu-noble
parent: zuul-jobs-test-ensure-python-pyenv-python-version
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-noble
label: ubuntu-noble
- project:
check:
jobs: &id001
- zuul-jobs-test-build-python-release-jobs-centos-9-stream
- zuul-jobs-test-build-python-release-jobs-debian-bookworm
- zuul-jobs-test-build-python-release-jobs-debian-bullseye
- zuul-jobs-test-build-python-release-jobs-ubuntu-focal
- zuul-jobs-test-build-python-release-jobs-ubuntu-jammy
- zuul-jobs-test-build-python-release-jobs-ubuntu-noble
- zuul-jobs-test-ensure-python-pyenv-centos-9-stream
- zuul-jobs-test-ensure-python-pyenv-debian-bookworm
- zuul-jobs-test-ensure-python-pyenv-debian-bullseye
- zuul-jobs-test-ensure-python-pyenv-ubuntu-focal
- zuul-jobs-test-ensure-python-pyenv-ubuntu-jammy
- zuul-jobs-test-ensure-python-pyenv-ubuntu-noble
- zuul-jobs-test-ensure-python-pyenv-python-version-centos-9-stream
- zuul-jobs-test-ensure-python-pyenv-python-version-debian-bookworm
- zuul-jobs-test-ensure-python-pyenv-python-version-debian-bullseye
- zuul-jobs-test-ensure-python-pyenv-python-version-ubuntu-focal
- zuul-jobs-test-ensure-python-pyenv-python-version-ubuntu-jammy
- zuul-jobs-test-ensure-python-pyenv-python-version-ubuntu-noble
gate:
jobs: *id001
periodic-weekly:
jobs: *id001