Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
README
  • Loading branch information
David Robertson committed Feb 3, 2022
commit b3da313096d84896a688eb4f4cf0a3d6745fa99c
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This is an action which sets up poetry for a project that uses [Poetry](https://python-poetry.org/) to manage its dependencies.
It requires a `poetry.lock` file to be present in the root of the repository. It:

- calls [`actions/setup-python`](https://github.com/actions/setup-python),
- `pip`-installs `poetry`,
- `poetry install`-s the current project,
- uses [`actions/cache`](https://github.com/actions/cache) to cache the poetry installation and the virtual environment it manages.

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

This particular action is loosely based on [`snok/install-poetry`](https://github.com/snok/install-poetry): in particular, the advice from its README on handling caching.