Skip to content

Commit fe6bc16

Browse files
committed
Try with setting up python first
1 parent b4da011 commit fe6bc16

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

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

+19-14
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,35 @@ runs:
2121

2222
using: "composite"
2323
steps:
24-
- name: Setup up pipx if not present
24+
- name: Set up Python (${{ inputs.python-version}})
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: ${{ inputs.python-version }}
28+
29+
- name: Set up pipx if not present
2530
shell: bash
2631
run: |
27-
python3 -m pip install --upgrade pipx
32+
python${{ inputs.python-version }} -m pip install --upgrade pipx
2833
pipx ensurepath
29-
echo "$Home/.local/bin" >> $GITHUB_PATH
34+
echo "$HOME/.local/bin" >> $GITHUB_PATH
3035
31-
- name: Setup Poetry (${{ inputs.poetry-version }})
36+
- name: Set up Poetry (${{ inputs.poetry-version }})
3237
shell: bash
3338
run: |
3439
pipx install poetry==${{ inputs.poetry-version }}
3540
36-
- name: Setup Python (${{ inputs.python-version}})
41+
- name: Set up Python (${{ inputs.python-version}})
3742
uses: actions/setup-python@v5
3843
with:
3944
python-version: ${{ inputs.python-version }}
4045
cache: 'poetry'
4146

42-
- name: Poetry install with extras
43-
shell: bash
44-
run: |
45-
EXTRAS=$(echo "${{ inputs.extras }}" | tr -d ' ')
46-
if [[ -n "$EXTRAS" ]]; then
47-
poetry install --extras "$EXTRAS"
48-
else
49-
poetry install
50-
fi
47+
# - name: Poetry install with extras
48+
# shell: bash
49+
# run: |
50+
# EXTRAS=$(echo "${{ inputs.extras }}" | tr -d ' ')
51+
# if [[ -n "$EXTRAS" ]]; then
52+
# poetry install --extras "$EXTRAS"
53+
# else
54+
# poetry install
55+
# fi

0 commit comments

Comments
 (0)