I am using action-pipenv in conjunction with actions/setup-python, but it seems that the correct python version is not detected. In particular consider the following excerpt of an action workflow file (only responsible parts are indicated):
...
...
steps:
- name: Setup python version
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install dependencies
uses: VaultVulp/action-pipenv@v2.0.1
with:
command: install -d
using a Pipfile of the form
[requires]
python_version = "3.7"
This generates the error
Run VaultVulp/action-pipenv@v2.0.1
with:
command: install --dev --deploy
env:
pythonLocation: /__w/_tool/Python/3.7.12/x64
LD_LIBRARY_PATH: /__w/_tool/Python/3.7.12/x64/lib
...
...
Warning: Python 3.7 was not found on your system...
Neither 'pyenv' nor 'asdf' could be found to install Python.
You can specify specific versions of Python with:
$ pipenv --python path/to/python
However, if instead I manually install pipenv without making use of action-pipenv, the correct python version is indeed detected.
Could this be because the actions install pipenv by making use of a generic python image (and if so, why not installing pipenv making use of the available python versions already installed on the instances)?
I am using
action-pipenvin conjunction with actions/setup-python, but it seems that the correct python version is not detected. In particular consider the following excerpt of an action workflow file (only responsible parts are indicated):using a Pipfile of the form
This generates the error
However, if instead I manually install
pipenvwithout making use ofaction-pipenv, the correct python version is indeed detected.Could this be because the actions install
pipenvby making use of a generic python image (and if so, why not installingpipenvmaking use of the available python versions already installed on the instances)?