How can I test an old PyPy version with GitHub Action setup-python?
Hi,
I would like to test my pythoncapi-compat project on PyPy versions older than 7.3 (since this one is quite recent). I read these documentations:
- https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#pypy
- https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-software
- https://downloads.python.org/pypy/
- https://downloads.python.org/pypy/versions.json
I tried to add "pypy-3.6-v7.2.0"
to my testing matrix: see https://github.com/python/pythoncapi-compat/pull/67/files
On my PR, the Build / build (ubuntu-latest, pypy-3.6-v7.2.0) (pull_request)
job failed. The "Setup Python" part of the job failed with this error:
PyPy version 3.6 (v7.2.0) was not found in the local cache
Stable PyPy version 3.6 (v7.2.0) with arch x64 not found
Trying pre-release versions
Error: PyPy version 3.6 (v7.2.0) with arch x64 not found
Sorry, I didn't get how to specify a PyPy version for the "setup-python" action. Should I just use a different action to set up Python? I'm fine with using a separated job for old PyPy versions.
By the way, my same change also adds "pypy-v5.0.0"
. If possible, I would like to test the oldest available PyPy version if possible.
Anyway, it's really cool that it's so easy to test all these PyPy versions:
- "pypy2.7"
- "pypy3.6"
- "pypy3.7"
- "pypy3.8"
- "pypy3.9"
Link to the latest GHA workflow: https://github.com/python/pythoncapi-compat/blob/main/.github/workflows/build.yml (permanent link).