You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed when reviewing #14613 that we're not requesting a specific version of python from actions/setup-python. The action's docs recommend doing so; if you don't provide a with: python-version: X.Y it falls back to a file .python-version, and if that doesn't exist it uses whatever version of python is on the PATH (which for CI runners is not guaranteed to be stable).
I kind of prefer it this way actually... things like that should work with any supported Python version really, and by not specifying it we get automatic updates as ubuntu-latest updates. So we have one fewer thing to have to keep updating when we bump minimums (or new Python is released) etc.
ok. In the context of #14613, one benefit would be knowing definitively whether the requested python ships with a new enough version of pip, or if we need a python -m pip install --upgrade pip line (and associated time/network traffic). It happens at a few places in the autofix.yml file (in different workflow jobs) and presumably in other workflow files too.
I guess I'd also counter that our bumping is getting pretty automated, and if we're writing an external .python-version file then the automation doesn't even need to edit the CI workflow definition, so it doesn't seem that onerous to me. But 🤷🏻, I'm not going to die on this hill.
Yeah .python-version (or similar) is okay with me. It also would remove the warning in the setup-python action that the version is unspecified and therefore will use the system python version
Activity
larsoner commentedon Nov 30, 2026
I kind of prefer it this way actually... things like that should work with any supported Python version really, and by not specifying it we get automatic updates as
ubuntu-latestupdates. So we have one fewer thing to have to keep updating when we bump minimums (or new Python is released) etc.drammock commentedon Nov 30, 2026
ok. In the context of #14613, one benefit would be knowing definitively whether the requested python ships with a new enough version of
pip, or if we need apython -m pip install --upgrade pipline (and associated time/network traffic). It happens at a few places in theautofix.ymlfile (in different workflow jobs) and presumably in other workflow files too.I guess I'd also counter that our bumping is getting pretty automated, and if we're writing an external
.python-versionfile then the automation doesn't even need to edit the CI workflow definition, so it doesn't seem that onerous to me. But 🤷🏻, I'm not going to die on this hill.larsoner commentedon Nov 30, 2026
Yeah
.python-version(or similar) is okay with me. It also would remove the warning in the setup-python action that the version is unspecified and therefore will use the system python version