Skip to content

Commit 0e41f33

Browse files
committed
Updates action
1 parent 230d474 commit 0e41f33

File tree

1 file changed

+6
-13
lines changed
  • {{ cookiecutter.__github_folder }}/_/python/actions/ci-setup-python

1 file changed

+6
-13
lines changed

{{ cookiecutter.__github_folder }}/_/python/actions/ci-setup-python/action.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,12 @@ runs:
1616
with:
1717
python-version: {{ '${{ inputs.python_version }}' }}
1818

19-
- name: Install poetry
20-
id: poetry-setup
21-
working-directory: .
22-
run: |
23-
python -m pip install pipx && python -m pipx install poetry
24-
shell: bash
25-
26-
- name: Configure poetry
27-
id: poetry-configure
28-
working-directory: .
29-
run: |
30-
poetry config virtualenvs.in-project true
31-
shell: bash
19+
- name: Install and configure Poetry
20+
uses: snok/install-poetry@v1
21+
with:
22+
version: 1.4.0
23+
virtualenvs-create: true
24+
virtualenvs-in-project: true
3225

3326
- name: Cache the virtualenv
3427
id: venv-cache

0 commit comments

Comments
 (0)