File tree 1 file changed +11
-6
lines changed
.github/actions/python-environment
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -17,27 +17,32 @@ inputs:
17
17
description : ' Comma-separated list of extras'
18
18
required : false
19
19
20
+ use-cache :
21
+ description : ' Use cache for poetry environment'
22
+ required : false
23
+ default : ' true'
24
+
20
25
runs :
21
26
22
27
using : " composite"
23
28
steps :
24
- - name : Setup up pipx if not present
29
+ - name : Set up pipx if not present
25
30
shell : bash
26
31
run : |
27
32
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
30
35
31
- - name : Setup Poetry (${{ inputs.poetry-version }})
36
+ - name : Set up Poetry (${{ inputs.poetry-version }})
32
37
shell : bash
33
38
run : |
34
39
pipx install poetry==${{ inputs.poetry-version }}
35
40
36
- - name : Setup Python (${{ inputs.python-version}})
41
+ - name : Cache envrionment (${{ inputs.python-version}})
37
42
uses : actions/setup-python@v5
38
43
with :
39
44
python-version : ${{ inputs.python-version }}
40
- cache : ' poetry'
45
+ cache : ${{ inputs.use-cache == 'true' && ' poetry' || '' }}
41
46
42
47
- name : Poetry install with extras
43
48
shell : bash
You can’t perform that action at this time.
0 commit comments