bump brew python version to 3.11 in CI

This commit is contained in:
arvidn
2022-11-28 01:21:37 +01:00
committed by Arvid Norberg
parent 64817e0e87
commit 28213fd2f2
2 changed files with 7 additions and 7 deletions

View File

@ -28,8 +28,8 @@ jobs:
if: runner.os == 'macOS'
run: |
brew update
brew install boost-build boost boost-python3 python@3.10 openssl@1.1
export PATH=$(brew --prefix)/opt/python@3.10/bin:$PATH
brew install boost-build boost boost-python3 python@3.11 openssl@1.1
export PATH=$(brew --prefix)/opt/python@3.11/bin:$PATH
- name: update package lists (linux)
if: runner.os == 'Linux'
@ -110,8 +110,8 @@ jobs:
run: |
# Install to Homebrew's python site-packages. no need for --user and --prefix
cd bindings/python
export PATH=$(brew --prefix)/opt/python@3.10/bin:$PATH
python3 setup.py build_ext install --install-lib $(brew --prefix)/lib/python3.10/site-packages
export PATH=$(brew --prefix)/opt/python@3.11/bin:$PATH
python3.11 setup.py build_ext install --install-lib $(brew --prefix)/lib/python3.11/site-packages
- name: tests (Linux)
if: runner.os == 'Linux'
@ -123,5 +123,5 @@ jobs:
if: runner.os == 'macOS'
run: |
cd bindings/python
export PATH=$(brew --prefix)/opt/python@3.10/bin:$PATH
python3 test.py
export PATH=$(brew --prefix)/opt/python@3.11/bin:$PATH
python3.11 test.py