Like snok/install-poetry, but with caching built in.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-14 09:20:02 +00:00
.github Claim for synapse team 2022-01-21 11:38:46 +00:00
action.yml Allow specifying --only [group,...] to install via only-groups option (#30) 2026-09-14 09:20:02 +00:00
LICENSE GitHub action to setup poetry (#1) 2022-02-08 10:45:15 +00:00
README.md Include OS version in cache key (#21) 2025-03-19 15:24:26 +00:00

This is an action which sets up Python and poetry for a project that uses Poetry to manage its dependencies. It requires a poetry.lock file to be present in the root of the repository. The action:

  • calls actions/setup-python,
  • pip-installs poetry,
  • poetry install-s the current project,
  • uses actions/cache to cache the poetry installation and the virtual environment it manages.

From this point, the caller of the action can run commands within the poetry-managed environment with poetry run.

The Python and Poetry versions to are configurable: see action.yaml for details.

This particular action is loosely based on snok/install-poetry: in particular, the advice from its README on handling caching.

Requirements

This action is only usable on Linux-based systems.

Releasing

Follow the advice given on the backend-meta repo.