Skip to content

Commit cbbc522

Browse files
committed
CI: try Python 3.11 instead of 3.12 on macOS
And update it to 3.11 on Linux while we're at it. Signed-off-by: Julian Oes <[email protected]>
1 parent 8f8e81f commit cbbc522

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,21 @@ jobs:
143143
echo $?
144144
git tag --list
145145
146+
- name: Set up Python
147+
uses: actions/setup-python@v5
148+
with:
149+
python-version: 3.11
150+
146151
- name: Install prerequisites
147152
run: |
148-
python3 -m pip install -r requirements.txt
149-
python3 -m pip install twine wheel
150-
python3 -m pip install --user delocate
153+
python -m pip install -r requirements.txt
154+
python -m pip install twine wheel
155+
python -m pip install --user delocate
151156
152157
- name: Create wheel
153158
run: |
154-
python3 setup.py bdist_wheel
155-
export PATH="$(python3 -m site --user-base)/bin:$PATH"
159+
python setup.py bdist_wheel
160+
export PATH="$(python -m site --user-base)/bin:$PATH"
156161
echo "PATH: $PATH"
157162
delocate-wheel -w wheelhouse -v dist/*.whl
158163
ls wheelhouse/*any.whl | sed -e 'p;s/any/macosx_10_9_x86_64/' | xargs -n2 mv
@@ -195,9 +200,9 @@ jobs:
195200
git tag --list
196201
197202
- name: Set up Python
198-
uses: actions/setup-python@v2
203+
uses: actions/setup-python@v5
199204
with:
200-
python-version: 3.10
205+
python-version: 3.11
201206
architecture: ${{ matrix.arch }}
202207

203208
- name: Install prerequisites

0 commit comments

Comments
 (0)