-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.python-version
file is not used to establish the python version
#458
Comments
.python-version
file is not used to establish the python version.python-version
file is not used to establish the python version
Hi, @gg-kialo 👋 Thanks for that issue, actually it's not a bug, but a piece of excess information in the documentation. Since v4.1.0 action will check |
Would you consider restoring the old behaviour? I've only just gone through all my repos and workflows and removed the |
Why do we have to add the default filename to our actions in all of our repos? Shouldn't the default behaviour just find the default file? |
Hi, @gg-kialo and @rs-garrick 👋 Thank you for your questions, we took them into consideration and decided to update behavior of the action, take a look at this PR. |
Hi, @ALL, I'm closing this issue now as the PR mentioned above was merged. If you have any additions feel free to ping us. |
All my CI workflows are still failing since they don't explicitly specify |
Description:
v4.1.0 introduced a regression where the repo-root
.python-version
file is no longer used by default to select the python version to install.The regression was introduced by #450
Reading from
.python-version
when thepython-version
input is unset is documented inaction.yml
-setup-python/action.yml
Lines 6 to 7 in 00a5248
Action version:
v4.1.0 (regression from v4.0.0)
Platform:
Runner type:
Tools version:
N/A
Repro steps:
Create a repository with a
.python-version
file containing3.10.4
and a workflow containing a setup-python step, e.g.:Expected behavior:
setup-python should install 3.10.4 as it is listed in the
.python-version
file, i.e. the step logs:This is the behaviour with v4.0.0.
Actual behavior:
setup-python ignores the
.python-version
file and logs:The text was updated successfully, but these errors were encountered: