Skip to content
zap

GitHub Action

Setup Poetry + cache ⚡

v0.1 Latest version

Setup Poetry + cache ⚡

zap

Setup Poetry + cache ⚡

Actions that setups poetry, with useful defaults

Installation

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

              

- name: Setup Poetry + cache ⚡

uses: benjavicente/[email protected]

Learn more about this action in benjavicente/setup-poetry

Choose a version

setup-poetry

A simple and opinionated action that simplifies setting up Poetry, installing dependencies and using cache so you don't have to ⚡

Note: this repository was generated from actions/typescript-action

Usage

name: example
on: push

jobs:
  lint-code:
    runs-on: ubuntu-latest
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        # Remember to use a python version that matches
        # the specified version in pyproject.toml
        with: { python-version: 3.9 }

      - uses: benjavicente/setup-poetry@main
        with: # default arguments
          poetry-version: 1.1.11
          cache-installation: true
          cache-dependencies: true
          install-dependencies: true

      - run: poetry run black src/