File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,15 +112,22 @@ jobs:
112112 - name : Checkout
113113 uses : actions/checkout@v4
114114
115- - name : Test in ${{ matrix.distro }} (Podman)
115+ - name : Test in ${{ matrix.distro }}
116116 run : |
117- podman run --rm -v $(pwd):/workspace:Z ${{ matrix.distro }} /bin/bash -c "
117+ docker run --rm -v $(pwd):/workspace ${{ matrix.distro }} /bin/bash -c "
118118 cd /workspace
119- if command -v apt-get &> /dev/null; then
120- apt-get update && apt-get install -y python3 python3-pip python3-venv
121- elif command -v dnf &> /dev/null; then
119+
120+ # RHEL/Rocky/Alma 8 ship with Python 3.6 by default (Too old).
121+ # We must explicitly install Python 3.9 on these older systems.
122+ if grep -q 'release 8' /etc/redhat-release 2>/dev/null; then
123+ dnf install -y python39 python39-pip
124+ # Force 'python3' to point to the new 3.9 installation
125+ ln -sf /usr/bin/python3.9 /usr/bin/python3
126+ else
127+ # Fedora and RHEL 9+ have compliant Python versions (3.9+) by default
122128 dnf install -y python3 python3-pip
123129 fi
130+
124131 python3 -m pip install --upgrade pip build
125132 python3 -m build
126133 python3 -m pip install dist/*.whl
You can’t perform that action at this time.
0 commit comments