Skip to content

Commit 0dbcecf

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

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

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

+11-6
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,32 @@ inputs:
1717
description: 'Comma-separated list of extras'
1818
required: false
1919

20+
use-cache:
21+
description: 'Use cache for poetry environment'
22+
required: false
23+
default: 'true'
24+
2025
runs:
2126

2227
using: "composite"
2328
steps:
24-
- name: Setup up pipx if not present
29+
- name: Set up pipx if not present
2530
shell: bash
2631
run: |
2732
python3 -m pip install --upgrade pipx
28-
pipx ensurepath
29-
echo "$Home/.local/bin" >> $GITHUB_PATH
33+
python3 -m pipx ensurepath
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: Cache envrionment (${{ inputs.python-version}})
3742
uses: actions/setup-python@v5
3843
with:
3944
python-version: ${{ inputs.python-version }}
40-
cache: 'poetry'
45+
cache: ${{ inputs.use-cache == 'true' && 'poetry' || '' }}
4146

4247
- name: Poetry install with extras
4348
shell: bash

0 commit comments

Comments
 (0)