python3.9/tests/tests.yml
Miro Hrončok 49157f095c CI: Install EPEL packages first
For unknown reason, packages from required_packages were installed in seemingly arbitrary order.

This lead to errors like:

    No match for argument: tox

As tox was trying to be installed before epel.

Or:

    Problem: conflicting requests
      - nothing provides epel-release = 9-10.el9 needed by epel-next-release-9-10.el9.noarch from @commandline

As epel-next-release was trying to be installed before epel.

Let's prefix everything with epel installation. One by one, in the required order.

Related: RHEL-167919, RHEL-168161
2026-04-22 12:05:02 +02:00

60 lines
1.9 KiB
YAML

---
- hosts: localhost
tags:
- classic
tasks:
- dnf:
name: "*"
state: latest
- dnf:
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm"
state: installed
- dnf:
name: "https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm"
state: installed
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
repositories:
- repo: "https://gitlab.com/redhat/centos-stream/tests/python.git"
dest: "python"
tests:
- smoke:
dir: python/smoke
run: VERSION=3.9 ./venv.sh
- debugsmoke:
dir: python/smoke
run: PYTHON=python3-debug TOX=false VERSION=3.9 ./venv.sh
- selftest:
dir: python/selftest
run: VERSION=3.9 X="-x test_wsgiref" ./parallel.sh
- debugtest:
dir: python/selftest
run: VERSION=3.9 PYTHON=python3-debug X="-x test_wsgiref" ./parallel.sh
- optimizedflags_self:
dir: python/flags
run: python3 ./assertflags.py -O3 PY_BUILTIN_MODULE_CFLAGS PY_CFLAGS_NODIST PY_CORE_CFLAGS PY_STDMODULE_CFLAGS
- optimizedflags_3rd:
dir: python/flags
run: python3 ./assertflags.py -O2 CFLAGS PY_CFLAGS
- debugflags:
dir: python/flags
run: python3-debug ./assertflags.py -O0
- marshalparser:
dir: python/marshalparser
run: VERSION=3.9 SAMPLE=10 test_marshalparser_compatibility.sh
required_packages:
- gcc # for extension building in venv and selftest
- gdb # for test_gdb
- python3.9 # the test subject
- python3-debug # for leak testing
- python3-devel # for extension building in venv and selftest
- python3-tkinter # for selftest
- python3-test # for selftest
- python3-tox # for venv tests
- glibc-all-langpacks # for locale tests
- marshalparser # for testing compatibility (magic numbers) with marshalparser