Skip to content
chevron-down

GitHub Action

setup/install python poetry

dist/v2.0.5 Latest version

setup/install python poetry

chevron-down

setup/install python poetry

install poetry on you OS

Installation

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

              

- name: setup/install python poetry

uses: trim21/setup-poetry@dist/v2.0.5

Learn more about this action in trim21/setup-poetry

Choose a version

Setup Python-Poetry

ci

Install python-poetry in your OS.

Support poetry>=1.3

steps:
  - uses: trim21/setup-poetry@dist/v2
    # with:
    #   version: "<2.0" # empty string for latest poetry

default it will install latest poetry.

Or you can use any valid pep440 version range.

for example

  • >=1.2,<2.0
  • ~=1.2 (version 1.2 or later, but not version 2.0 or later)
  • == 3.1.* (== is required, 3.1.* and 3.1.x won't work)
  • ~=1.1.0, != 1.1.3: version 1.1.0 or later, but not version 1.1.3 and not version 1.2.0 or later.