Skip to content

trim21/setup-poetry

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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.