This is the typical 'failure' seen all the time when testing on EOL Python versions. I'm guessing Github's setup-python action, and/or Ubuntu 24.04 have dropped Python 3.7 support.
Some possible fixes that worked for me in the past are:
- Run the action in a Python 3.7 docker container, instead of directly on the Ubuntu host
- LizardByte/actions/actions/setup-python instead (uses pyenv under the hood)
- For newer versions thatn 3.7, installing the required Python with uv works, but I don't believe they support 3.7 any more.
- Perhaps use tox to create its required Python envs itself?
Or drop support for Python 3.7 of course.
This is the typical 'failure' seen all the time when testing on EOL Python versions. I'm guessing Github's setup-python action, and/or Ubuntu 24.04 have dropped Python 3.7 support.
Some possible fixes that worked for me in the past are:
Or drop support for Python 3.7 of course.