Adjust the CI tests to work for Python 3.12 on EPEL 9, add gating config

Note that by default, virtualenv does not install wheel to Python 3.12+
virtual environments. We set VIRTUALENV_WHEEL=bundle to force it,
otherwise the test is quite useless.
This commit is contained in:
Miro Hrončok 2024-01-09 12:54:20 +01:00
parent a09856301b
commit 304016fabc
2 changed files with 12 additions and 35 deletions

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -7,44 +7,14 @@
repositories:
- repo: "https://src.fedoraproject.org/tests/python.git"
dest: "python"
- repo: "https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git"
dest: "pyproject-rpm-macros"
tests:
- smoke27:
- smoke312:
dir: python/smoke
run: VERSION=2.7 METHOD=virtualenv ./venv.sh
- smoke36:
dir: python/smoke
run: VERSION=3.6 METHOD=virtualenv ./venv.sh
- smoke37_optional:
dir: python/smoke
run: VERSION=3.7 METHOD=virtualenv INSTALL_OR_SKIP=true ./venv.sh
- smoke38:
dir: python/smoke
run: VERSION=3.8 METHOD=virtualenv ./venv.sh
- smoke39:
dir: python/smoke
run: VERSION=3.9 METHOD=virtualenv ./venv.sh
- smoke310:
dir: python/smoke
run: VERSION=3.10 METHOD=virtualenv ./venv.sh
- pyproject_pytest:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-pytest
- pyproject_pluggy:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-pluggy
run: VERSION=3.12 METHOD=virtualenv VIRTUALENV_WHEEL=bundle ./venv.sh
required_packages:
- 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm'
- 'https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm'
- gcc
- virtualenv
- python2.7
- python3.6
- python3.8
- python3.9
- python3.10-devel
- python2-devel
- python3-devel
- python3.12-devel
- python3-tox
- mock
- rpmdevtools
- rpm-build