Skip to content

Commit 38cf554

Browse files
committed
ci: apply PyGObject upper-bounding only on affected platforms
1 parent 1fadd9e commit 38cf554

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,14 @@ jobs:
104104
pyside6-ver: '!=6.5.1'
105105
- os: macos-14 # This runner is on M1 (arm64) chips.
106106
python-version: '3.12'
107+
# https://github.com/matplotlib/matplotlib/issues/29732
108+
pygobject-ver: '<3.52.0'
107109
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
108110
pyside6-ver: '!=6.5.1'
109111
- os: macos-14 # This runner is on M1 (arm64) chips.
110112
python-version: '3.13'
113+
# https://github.com/matplotlib/matplotlib/issues/29732
114+
pygobject-ver: '<3.52.0'
111115
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
112116
pyside6-ver: '!=6.5.1'
113117

@@ -273,7 +277,7 @@ jobs:
273277
# (sometimes, the install appears to be successful but shared
274278
# libraries cannot be loaded at runtime, so an actual import is a
275279
# better check).
276-
python -m pip install --upgrade pycairo 'cairocffi>=0.8' 'PyGObject<3.52.0' &&
280+
python -m pip install --upgrade pycairo 'cairocffi>=0.8' PyGObject${{ matrix.pygobject-ver }} &&
277281
(
278282
python -c 'import gi; gi.require_version("Gtk", "4.0"); from gi.repository import Gtk' &&
279283
echo 'PyGObject 4 is available' || echo 'PyGObject 4 is not available'

0 commit comments

Comments
 (0)