Skip to content

Support actions/setup-python #2

@gennaro-tedesco

Description

@gennaro-tedesco

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions