Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c351b6

Browse files
anntzerQuLogic
authored andcommitted
Try running GUI tests on all platforms on Azure
1 parent a916809 commit 1c351b6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

azure-pipelines.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,34 @@ stages:
7878
python -m pip install -r requirements/testing/all.txt -r requirements/testing/extra.txt
7979
displayName: 'Install dependencies with pip'
8080
81+
- bash: |
82+
# GUI toolkits are pip-installable only for some versions of Python so don't fail if we can't install
83+
# them. Make it easier to check whether the install was successful by trying to import the toolkit
84+
# (sometimes, the install appears to be successful but shared libraries cannot be loaded at runtime, so
85+
# an actual import is a better check).
86+
python -m pip install --upgrade pycairo cairocffi>=0.8
87+
python -m pip install --upgrade PyGObject &&
88+
(
89+
python -c 'import gi; gi.require_version("Gtk", "4.0"); from gi.repository import Gtk' &&
90+
echo 'PyGObject 4 is available' || echo 'PyGObject 4 is not available'
91+
) && (
92+
python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
93+
echo 'PyGObject 3 is available' || echo 'PyGObject 3 is not available'
94+
)
95+
python -m pip install --upgrade pyqt5 &&
96+
python -c 'import PyQt5.QtCore' &&
97+
echo 'PyQt5 is available' ||
98+
echo 'PyQt5 is not available'
99+
python -m pip install --upgrade pyside2 &&
100+
python -c 'import PySide2.QtCore' &&
101+
echo 'PySide2 is available' ||
102+
echo 'PySide2 is not available'
103+
python -m pip install --upgrade --only-binary :all: wxPython &&
104+
python -c 'import wx' &&
105+
echo 'wxPython is available' ||
106+
echo 'wxPython is not available'
107+
displayName: 'Install GUI dependencies with pip'
108+
81109
- bash: |
82110
CONFIG='--config-settings=setup-args=--vsenv'
83111
CONFIG="$CONFIG --config-settings=setup-args=-Dcpp_link_args=-PROFILE"

0 commit comments

Comments
 (0)