Skip to content

Commit d81500d

Browse files
committed
CI needs Python 3.9 due to a nonstandard construct
1 parent f22e949 commit d81500d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ jobs:
2222
awk -F '\/' '{ print tolower($2) }' |
2323
tr '_' '-'
2424
)
25-
- name: Set up Python 3.x
25+
# Python 3.10 rejects a nonstandard Python syntax that is required by
26+
# CircuitPython's asyncio implementation
27+
- name: Set up Python 3.9
2628
uses: actions/setup-python@v2
2729
with:
28-
python-version: "3.x"
30+
python-version: "3.9"
2931
- name: Versions
3032
run: |
3133
python3 --version

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ jobs:
2424
awk -F '\/' '{ print tolower($2) }' |
2525
tr '_' '-'
2626
)
27-
- name: Set up Python 3.x
27+
# Python 3.10 rejects a nonstandard Python syntax that is required by
28+
# CircuitPython's asyncio implementation
29+
- name: Set up Python 3.9
2830
uses: actions/setup-python@v2
2931
with:
30-
python-version: "3.x"
32+
python-version: "3.9"
3133
- name: Versions
3234
run: |
3335
python3 --version
@@ -69,7 +71,7 @@ jobs:
6971
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
7072
uses: actions/setup-python@v2
7173
with:
72-
python-version: '3.x'
74+
python-version: '3.9'
7375
- name: Install dependencies
7476
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
7577
run: |

0 commit comments

Comments
 (0)