Anyone have a good example of setting up GitHub Actions for old, out-of-support versions of Python (e.g. 2.7, 3.6)?
@mattjohnsonpint Hmm... Allegedly you can use it with anything in this list: https://github.com/actions/python-versions/blob/main/versions-manifest.json
But it doesn't seem to be working, at least for 2.7 and 3.6: https://github.com/python/tzdata/actions/runs/3585907944/jobs/6034467045
They aren't very clear about how to specify it in this README: https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#available-versions-of-python-and-pypy
@pganssle Oh - I see the problem. `ubuntu-latest` has been promoted to 22.04, which doesn't have those older Python versions in the list. Try switching to `ubuntu-20.04`
@pganssle Alternatively you could stay on `ubuntu-latest` and instead of using the setup-python action you could script out `sudo apt install python2`
@mattjohnsonpint Yeah, Hynek figured it out in a parallel reply: https://mastodon.social/@hynek/109434203897348469
So now the Windows + Python users of northern Mexico can have more accurate time zones today. If they update their Python packages. 😅
@pganssle isn’t that just about using an older base image? Currently 20.04 should work for both.
@pganssle @jugmac00 @hynek Officially announced today as well:
https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
@pganssle probably easiest to use this: https://github.com/actions/setup-python