Skip to content

Commit e0e8212

Browse files
committed
ci: Remove all conditions for optional GUI dependencies
We aren't testing on macOS 10.12 any more, but macos-latest, which is now macOS 12. Wheels for Python 3.12 should be available everywhere by now as well.
1 parent 7be721c commit e0e8212

File tree

1 file changed

+18
-32
lines changed

1 file changed

+18
-32
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -242,43 +242,29 @@ jobs:
242242
echo 'PyGObject 3 is available' || echo 'PyGObject 3 is not available'
243243
)
244244
245-
# There are no functioning wheels available for macOS 10.12 (as of
246-
# Sept 2020) for either pyqt5 (there are only wheels for 10.13+) or
247-
# pyside2 (the latest version (5.13.2) with 10.12 wheels has a
248-
# fatal to us bug, it was fixed in 5.14.0 which has 10.13 wheels)
249245
python -mpip install --upgrade pyqt5${{ matrix.pyqt5-ver }} &&
250246
python -c 'import PyQt5.QtCore' &&
251247
echo 'PyQt5 is available' ||
252248
echo 'PyQt5 is not available'
253-
if [[ "${{ runner.os }}" != 'macOS'
254-
&& "${{ matrix.python-version }}" != '3.12' ]]; then
255-
python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} &&
256-
python -c 'import PySide2.QtCore' &&
257-
echo 'PySide2 is available' ||
258-
echo 'PySide2 is not available'
259-
fi
260-
if [[ "${{ runner.os }}" != 'macOS' ]]; then
261-
python -mpip install --upgrade pyqt6${{ matrix.pyqt6-ver }} &&
262-
python -c 'import PyQt6.QtCore' &&
263-
echo 'PyQt6 is available' ||
264-
echo 'PyQt6 is not available'
265-
fi
266-
if [[ "${{ runner.os }}" != 'macOS'
267-
&& "${{ matrix.python-version }}" != '3.12' ]]; then
268-
python -mpip install --upgrade pyside6${{ matrix.pyside6-ver }} &&
269-
python -c 'import PySide6.QtCore' &&
270-
echo 'PySide6 is available' ||
271-
echo 'PySide6 is not available'
272-
fi
249+
python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} &&
250+
python -c 'import PySide2.QtCore' &&
251+
echo 'PySide2 is available' ||
252+
echo 'PySide2 is not available'
253+
python -mpip install --upgrade pyqt6${{ matrix.pyqt6-ver }} &&
254+
python -c 'import PyQt6.QtCore' &&
255+
echo 'PyQt6 is available' ||
256+
echo 'PyQt6 is not available'
257+
python -mpip install --upgrade pyside6${{ matrix.pyside6-ver }} &&
258+
python -c 'import PySide6.QtCore' &&
259+
echo 'PySide6 is available' ||
260+
echo 'PySide6 is not available'
273261
274-
if [[ "${{ matrix.python-version }}" != '3.12' ]]; then
275-
python -mpip install --upgrade \
276-
-f "https://extras.wxpython.org/wxPython4/extras/linux/gtk3/${{ matrix.os }}" \
277-
wxPython &&
278-
python -c 'import wx' &&
279-
echo 'wxPython is available' ||
280-
echo 'wxPython is not available'
281-
fi
262+
python -mpip install --upgrade \
263+
-f "https://extras.wxpython.org/wxPython4/extras/linux/gtk3/${{ matrix.os }}" \
264+
wxPython &&
265+
python -c 'import wx' &&
266+
echo 'wxPython is available' ||
267+
echo 'wxPython is not available'
282268
283269
- name: Install the nightly dependencies
284270
# Only install the nightly dependencies during the scheduled event

0 commit comments

Comments
 (0)