Skip to content

trim21/install-poetry-project

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

Install Poetry Project With Cache

ci

This action install poetry deps to .venv, and enable virtualenv environment.

virtualenv environment .venv will be cached based on pyproject.toml and poetry.lock(if exist)

- uses: actions/checkout@v3

- uses: actions/setup-python@v3
  with:
    python-version: 3.7

- uses: Trim21/setup-poetry@dist/v2

- uses: Trim21/install-poetry-project@dist/v2
  with:
    # extras arguments passed to poetry command
    # And you don't need to add --sync args, it will be added automatically
    install_args: -vvv --no-root
    # each deps for one line
    extras: |
      group1
      group2