Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trim21/install-poetry-project


https://github.com/trim21/install-poetry-project

actions github-actions python-poetry

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

# Install Poetry Project With Cache

[![ci](https://github.com/Trim21/install-poetry-project/workflows/build-test/badge.svg)](https://github.com/Trim21/install-poetry-project/actions)

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)

```yaml
- 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
```