File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
name : ' Build CI'
6
6
description : ' Build CI used for pushes and pull requests'
7
+ inputs :
8
+ python-version :
9
+ description : ' The version of Python to use in the CI'
10
+ required : true
11
+ default : ' 3.x'
7
12
runs :
8
13
using : " composite"
9
14
steps :
19
24
- name : Set up Python 3.x
20
25
uses : actions/setup-python@v4
21
26
with :
22
- python-version : " 3.x "
27
+ python-version : ${{ inputs.python-version }}
23
28
- name : Versions
24
29
shell : bash
25
30
run : |
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ inputs:
11
11
upload-url :
12
12
description : ' The release upload URL for the asset'
13
13
required : true
14
+ python-version :
15
+ description : ' The version of Python to use in the CI'
16
+ required : true
17
+ default : ' 3.x'
14
18
runs :
15
19
using : " composite"
16
20
steps :
26
30
- name : Set up Python 3.x
27
31
uses : actions/setup-python@v4
28
32
with :
29
- python-version : " 3.x "
33
+ python-version : ${{ inputs.python-version }}
30
34
- name : Versions
31
35
shell : bash
32
36
run : |
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ inputs:
11
11
pypi-password :
12
12
description : ' The PyPI password for twine'
13
13
required : true
14
+ python-version :
15
+ description : ' The version of Python to use in the CI'
16
+ required : true
17
+ default : ' 3.x'
14
18
runs :
15
19
using : " composite"
16
20
steps :
24
28
if : contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
25
29
uses : actions/setup-python@v4
26
30
with :
27
- python-version : ' 3.x '
31
+ python-version : ${{ inputs.python-version }}
28
32
- name : Install dependencies
29
33
if : contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
30
34
shell : bash
You can’t perform that action at this time.
0 commit comments