Skip to content
truck

GitHub Action

Python Pipenv Action

v1 Latest version

Python Pipenv Action

truck

Python Pipenv Action

An action to run https://github.com/pypa/pipenv based on https://github.com/abatilo/actions-poetry

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Python Pipenv Action

uses: tiagovrtr/actions-pipenv@v1

Learn more about this action in tiagovrtr/actions-pipenv

Choose a version

actions-pipenv

GitHub Actions for Python projects using pipenv. Shameless adaptation of abatilo/actions-poetry: GitHub Actions for Python projects using poetry

license release GitHub release date

Getting started

Implementation notes

This action makes the assumption that you've already setup Python via setup-python or some other way. Since we're installing pipenv directly to your environment, this also means that you can cache your dependencies more easily since everything is running on the host runner instead of an isolated container environment.

Create your workflow

name: CI
on: pull_request

jobs:
  ci:
    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
        pipenv-version: ["v2022.9.8", "v2022.9.21"]
        os: [ubuntu-18.04, macos-latest, windows-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python-version }}
          cache: "pipenv"
      - name: Run image
        uses: tiagovrtr/actions-pipenv@v1
        with:
          pipenv-version: ${{ matrix.pipenv-version }}
      - name: View pipenv --help
        run: pipenv --help

License

MIT License - abatilo/actions-poetry