File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,20 @@ inputs:
11
11
- ' 3.11'
12
12
- ' 3.12'
13
13
default : ' 3.11'
14
+ uv :
15
+ type : boolean
16
+ description : " Use uv to install python packages"
17
+ default : true
14
18
15
19
runs :
16
20
using : ' composite'
17
21
steps :
22
+ - name : Set up Python ${{ inputs.version }}
23
+ uses : actions/setup-python@v4
24
+ with :
25
+ python-version : ${{ inputs.version }}
26
+ if : ${{ inputs.uv == 'true' }}
27
+
18
28
- name : Set up Python ${{ inputs.version }}
19
29
uses : actions/setup-python@v4
20
30
with :
@@ -23,14 +33,17 @@ runs:
23
33
cache-dependency-path : |
24
34
"**/pyproject.toml"
25
35
"**/setup.py"
36
+ if : ${{ inputs.uv != 'true' }}
26
37
27
38
- name : Install uv
28
39
uses : astral-sh/setup-uv@v5
29
40
with :
30
41
enable-cache : true
31
42
ignore-nothing-to-cache : true
32
43
prune-cache : false
44
+ if : ${{ inputs.uv == 'true' }}
33
45
34
46
- name : Setup uv to use system python without extra flags
35
47
shell : bash
36
48
run : echo "UV_SYSTEM_PYTHON=1" >> $GITHUB_ENV
49
+ if : ${{ inputs.uv == 'true' }}
You can’t perform that action at this time.
0 commit comments