Open larsevj opened 4 months ago
See:
@pytest.fixture(scope="session")
def python38_path():
"""Locate Python 3.8 executable
On RHEL 7 python3.8 is found in SCL, but on RHEL 8 and Ubuntu (used by
Github Actions) has it installed in the system.
RHEL7 : yum install rh-python38-devel
RHEL8 : yum install python38-devel
Ubuntu 18.04 : apt-get install python3-venv python3.8-{dev,venv}
"""
for exe in "/usr/bin/python3.8", "/opt/rh/rh-python38/root/bin/python3.8":
if os.path.isfile(exe):
return exe
else:
raise RuntimeError("Could not locate python3.8")
The actual tests explicitly tests for python3.8 by mocking a komodo. Now that we are building releases for python3.11 we should also test with python3.11.