Skip to content

Commit a7638b3

Browse files
committed
Debug
1 parent 8ddefa0 commit a7638b3

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

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

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,23 @@ 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 }}
3545

3646
- name: Set up Python (${{ inputs.python-version}})
3747
uses: actions/setup-python@v5
3848
with:
3949
python-version: ${{ inputs.python-version }}
4050
cache: ${{ inputs.use-cache == 'true' && 'poetry' || '' }}
4151

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 python3 -
50-
echo "$PATH"
51-
poetry --version
52-
53-
5452
- name: Poetry install with extras
5553
working-directory: ${{ inputs.working-directory }}
5654
shell: bash
@@ -59,11 +57,4 @@ runs:
5957
poetry install --extras "$EXTRAS"
6058
else
6159
poetry install
62-
fi
63-
64-
- name: Validate Poetry environment
65-
working-directory: ${{ inputs.working-directory }}
66-
shell: bash
67-
run: |
68-
poetry run python --version
69-
poetry run python --version | grep "${{ inputs.python-version }}"
60+
fi

0 commit comments

Comments
 (0)