Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.92 KB

README.md

File metadata and controls

49 lines (40 loc) · 1.92 KB

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