python-wheel/tests/tests.yml
Miro Hrončok 0f18fe05cc CI: Add tests for newer Pythons
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.
2024-01-09 12:50:12 +01:00

63 lines
1.7 KiB
YAML

---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
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:
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
- smoke311:
dir: python/smoke
run: VERSION=3.11 METHOD=virtualenv ./venv.sh
- smoke312:
dir: python/smoke
run: VERSION=3.12 METHOD=virtualenv VIRTUALENV_WHEEL=bundle ./venv.sh
- smoke313:
dir: python/smoke
run: VERSION=3.13 METHOD=virtualenv VIRTUALENV_WHEEL=bundle ./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
required_packages:
- gcc
- virtualenv
- python2.7
- python3.6
- python3.8
- python3.9
- python3.10-devel
- python3.11-devel
- python3.12-devel
- python3.13-devel
- python2-devel
- python3-devel
- python3-tox
- mock
- rpmdevtools
- rpm-build