@@ -87,10 +87,14 @@ jobs:
87
87
pyqt6-ver : ' !=6.6.0'
88
88
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
89
89
pyside6-ver : ' !=6.5.1'
90
- - os : macos-latest
90
+ - os : macos-12 # This runnre is on Intel chips.
91
91
python-version : 3.9
92
92
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
93
93
pyside6-ver : ' !=6.5.1'
94
+ - os : macos-14 # This runner is on M1 (arm64) chips.
95
+ python-version : ' 3.12'
96
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
97
+ pyside6-ver : ' !=6.5.1'
94
98
95
99
steps :
96
100
- uses : actions/checkout@v4
@@ -157,7 +161,8 @@ jobs:
157
161
macOS)
158
162
brew install ccache
159
163
brew tap homebrew/cask-fonts
160
- brew install font-noto-sans-cjk gobject-introspection gtk4 ninja
164
+ brew install font-noto-sans-cjk ghostscript gobject-introspection gtk4 ninja
165
+ brew install --cask inkscape
161
166
;;
162
167
esac
163
168
@@ -228,7 +233,6 @@ jobs:
228
233
# (sometimes, the install appears to be successful but shared
229
234
# libraries cannot be loaded at runtime, so an actual import is a
230
235
# better check).
231
- # PyGObject, pycairo, and cariocffi do not install on macOS 10.12.
232
236
python -m pip install --upgrade pycairo 'cairocffi>=0.8' PyGObject &&
233
237
(
234
238
python -c 'import gi; gi.require_version("Gtk", "4.0"); from gi.repository import Gtk' &&
@@ -238,43 +242,35 @@ jobs:
238
242
echo 'PyGObject 3 is available' || echo 'PyGObject 3 is not available'
239
243
)
240
244
241
- # There are no functioning wheels available for macOS 10.12 (as of
242
- # Sept 2020) for either pyqt5 (there are only wheels for 10.13+) or
243
- # pyside2 (the latest version (5.13.2) with 10.12 wheels has a
244
- # fatal to us bug, it was fixed in 5.14.0 which has 10.13 wheels)
245
245
python -mpip install --upgrade pyqt5${{ matrix.pyqt5-ver }} &&
246
246
python -c 'import PyQt5.QtCore' &&
247
247
echo 'PyQt5 is available' ||
248
248
echo 'PyQt5 is not available'
249
- if [[ "${{ runner.os }}" != 'macOS'
249
+ # Even though PySide2 wheels can be installed on Python 3.12, they are broken and since PySide2 is
250
+ # deprecated, they are unlikely to be fixed. For the same deprecation reason, there are no wheels
251
+ # on M1 macOS, so don't bother there either.
252
+ if [[ "${{ matrix.os }}" != 'macos-14'
250
253
&& "${{ matrix.python-version }}" != '3.12' ]]; then
251
254
python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} &&
252
255
python -c 'import PySide2.QtCore' &&
253
256
echo 'PySide2 is available' ||
254
257
echo 'PySide2 is not available'
255
258
fi
256
- if [[ "${{ runner.os }}" != 'macOS' ]]; then
257
- python -mpip install --upgrade pyqt6${{ matrix.pyqt6-ver }} &&
258
- python -c 'import PyQt6.QtCore' &&
259
- echo 'PyQt6 is available' ||
260
- echo 'PyQt6 is not available'
261
- fi
262
- if [[ "${{ runner.os }}" != 'macOS'
263
- && "${{ matrix.python-version }}" != '3.12' ]]; then
264
- python -mpip install --upgrade pyside6${{ matrix.pyside6-ver }} &&
265
- python -c 'import PySide6.QtCore' &&
266
- echo 'PySide6 is available' ||
267
- echo 'PySide6 is not available'
268
- fi
259
+ python -mpip install --upgrade pyqt6${{ matrix.pyqt6-ver }} &&
260
+ python -c 'import PyQt6.QtCore' &&
261
+ echo 'PyQt6 is available' ||
262
+ echo 'PyQt6 is not available'
263
+ python -mpip install --upgrade pyside6${{ matrix.pyside6-ver }} &&
264
+ python -c 'import PySide6.QtCore' &&
265
+ echo 'PySide6 is available' ||
266
+ echo 'PySide6 is not available'
269
267
270
- if [[ "${{ matrix.python-version }}" != '3.12' ]]; then
271
- python -mpip install --upgrade \
272
- -f "https://extras.wxpython.org/wxPython4/extras/linux/gtk3/${{ matrix.os }}" \
273
- wxPython &&
274
- python -c 'import wx' &&
275
- echo 'wxPython is available' ||
276
- echo 'wxPython is not available'
277
- fi
268
+ python -mpip install --upgrade \
269
+ -f "https://extras.wxpython.org/wxPython4/extras/linux/gtk3/${{ matrix.os }}" \
270
+ wxPython &&
271
+ python -c 'import wx' &&
272
+ echo 'wxPython is available' ||
273
+ echo 'wxPython is not available'
278
274
279
275
- name : Install the nightly dependencies
280
276
# Only install the nightly dependencies during the scheduled event
0 commit comments