Description:
The recommendations for caching poetry dependencies causes the wrong python version to be used for poetry install.
Because pipx install poetry happens before setup-python and By default, Poetry will try to use the Python version used during Poetry’s installation to create the virtual environment for the current project.
Maybe the solution here is to update the docs to make sure that users know to run poetry env use ${{ steps.setup-python.outputs.python-path }}python prior to running poetry install. I have not tested that works however.
Action version:
v5
Platform:
Runner type:
Tools version:
All versions of python affected except the default version installed on the github runner.
Repro steps:
Follow the steps outlined in advance-usage.md for caching poetry dependencies.
Run poetry install
Expected behavior:
poetry install should use the version of python set by setup-python
Actual behavior:
poetry install uses the default version of python from the runner os.