From cbbc522a18485acf80ed5519d633fd39e99177b4 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 31 Jan 2024 10:29:35 +1300 Subject: [PATCH] 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 --- .github/workflows/main.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 89df71a1..bf77504e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -143,16 +143,21 @@ jobs: echo $? git tag --list + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.11 + - name: Install prerequisites run: | - python3 -m pip install -r requirements.txt - python3 -m pip install twine wheel - python3 -m pip install --user delocate + python -m pip install -r requirements.txt + python -m pip install twine wheel + python -m pip install --user delocate - name: Create wheel run: | - python3 setup.py bdist_wheel - export PATH="$(python3 -m site --user-base)/bin:$PATH" + python setup.py bdist_wheel + export PATH="$(python -m site --user-base)/bin:$PATH" echo "PATH: $PATH" delocate-wheel -w wheelhouse -v dist/*.whl ls wheelhouse/*any.whl | sed -e 'p;s/any/macosx_10_9_x86_64/' | xargs -n2 mv @@ -195,9 +200,9 @@ jobs: git tag --list - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: 3.10 + python-version: 3.11 architecture: ${{ matrix.arch }} - name: Install prerequisites