Skip to content

Commit 52bf528

Browse files
committed
Fixed action.yml
1 parent 3b26791 commit 52bf528

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/actions/python-environment/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ runs:
4949
python-version: ${{ inputs.python-version }}
5050
cache: ${{ inputs.use-cache == 'true' && 'poetry' || '' }}
5151

52+
- name: Setup Poetry environment
53+
shell: bash
54+
working-directory: ${{ inputs.working-directory }}
55+
run: |
56+
PYTHON_PATH="$(which $PYTHON_BINARY)"
57+
poetry env use "$PYTHON_PATH"
58+
env:
59+
PYTHON_BINARY: "python${{ inputs.poetry-version }}"
60+
5261
- name: Poetry install with extras
5362
working-directory: ${{ inputs.working-directory }}
5463
shell: bash

0 commit comments

Comments
 (0)