File tree Expand file tree Collapse file tree 4 files changed +34
-3
lines changed Expand file tree Collapse file tree 4 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -78,3 +78,21 @@ It can be invoked using:
78
78
with :
79
79
pypi-username : ${{ secrets.pypi_username }}
80
80
pypi-password : ${{ secrets.pypi_password }}
81
+
82
+ Notes
83
+ -----
84
+
85
+ Libraries that will be available for use in CPython using Blinka may not be able to
86
+ support the latest versions of CPython based on the availability of dependencies for
87
+ that version. In these instances, all of the actions here support a input parameter
88
+ of ``python-version `` to set the version of Python used by the CI (the default is to
89
+ use the latest version):
90
+
91
+ .. code-block :: yaml
92
+
93
+ - name : Run PyPI Release CI workflow
94
+ uses : adafruit/workflows-circuitpython-libs/release-pypi@main
95
+ with :
96
+ pypi-username : ${{ secrets.pypi_username }}
97
+ pypi-password : ${{ secrets.pypi_password }}
98
+ python-version : 3.9
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