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
The python-version input is optional. If not supplied, the action will try to resolve the version from the default .python-version file. If the .python-version file doesn't exist Python or PyPy version from the PATH will be used.
however, if a repo has a .python-version file, the version in that file will always be used instead of that supplied in the action argument python-version.
Action version:
v5
Platform:
Ubuntu
macOS
Windows
Runner type:
Hosted
Self-hosted
Tools version:
applies to all valid versions
Repro steps:
In an actions workflow:
checkout a repo with a valid .python-version file
run setup-python with a valid python-version argument
Expected behavior:
I expected setup-python to prefer the python-version argument when it is available.
Actual behavior:
setup-python uses the version contained in .python-version instead of the one supplied in the argument.
The text was updated successfully, but these errors were encountered:
Description:
According to the
README
however, if a repo has a
.python-version
file, the version in that file will always be used instead of that supplied in the action argumentpython-version
.Action version:
v5
Platform:
Runner type:
Tools version:
applies to all valid versions
Repro steps:
In an actions workflow:
.python-version
filepython-version
argumentExpected behavior:
I expected setup-python to prefer the
python-version
argument when it is available.Actual behavior:
setup-python uses the version contained in
.python-version
instead of the one supplied in the argument.The text was updated successfully, but these errors were encountered: