Skip to content

Commit dce4ef1

Browse files
committed
Debug
1 parent f36dcc5 commit dce4ef1

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

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

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,26 @@ runs:
3232
using: "composite"
3333
steps:
3434

35-
- name: Set up pipx if not present
36-
shell: bash
37-
run: |
38-
python3 -m pip install --break-system-packages --upgrade pipx || python3 -m pip install --upgrade pipx
39-
python3 -m pipx ensurepath
40-
echo "$HOME/.local/bin" >> $GITHUB_PATH
41-
42-
- name: Set up Poetry (${{ inputs.poetry-version }})
43-
shell: bash
44-
run: pipx install poetry==${{ inputs.poetry-version }}
4535

4636
- name: Set up Python (${{ inputs.python-version}})
4737
uses: actions/setup-python@v5
4838
with:
4939
python-version: ${{ inputs.python-version }}
5040
cache: ${{ inputs.use-cache == 'true' && 'poetry' || '' }}
5141

42+
- name: Ensure curl
43+
shell: bash
44+
run: sudo apt update && sudo apt install -y curl
45+
46+
- name: Set up Poetry (${{ inputs.poetry-version }})
47+
shell: bash
48+
run: |
49+
curl -sSL https://install.python-poetry.org | POETRY_VERSION="${{ inputs.poetry-version }}" POETRY_HOME=/usr/local sudo -E "$PYTHON_BINARY" -
50+
echo "$PATH"
51+
poetry --version
52+
env:
53+
PYTHON_BINARY: "python${{ inputs.python-version }}"
54+
5255
- name: Poetry install with extras
5356
working-directory: ${{ inputs.working-directory }}
5457
shell: bash
@@ -57,4 +60,11 @@ runs:
5760
poetry install --extras "$EXTRAS"
5861
else
5962
poetry install
60-
fi
63+
fi
64+
65+
- name: Validate Poetry environment
66+
working-directory: ${{ inputs.working-directory }}
67+
shell: bash
68+
run: |
69+
poetry run python --version
70+
poetry run python --version | grep "${{ inputs.python-version }}"

0 commit comments

Comments
 (0)