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