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

Skip to content

Commit 5a821af

Browse files
anntzerQuLogic
authored andcommitted
Try running GUI tests on all platforms on Azure.
1 parent e6a50ea commit 5a821af

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

azure-pipelines.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,38 @@ 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+
if [[ "$PYTHON_VERSION" != 'Pre' ]]; then
83+
# GUI toolkits are pip-installable only for some versions of Python
84+
# so don't fail if we can't install them. Make it easier to check
85+
# whether the install was successful by trying to import the
86+
# toolkit (sometimes, the install appears to be successful but
87+
# shared libraries cannot be loaded at runtime, so an actual import
88+
# is a better check).
89+
python -m pip install --upgrade pycairo cairocffi>=0.8
90+
python -m pip install --upgrade 'PyGObject${{ matrix.pygobject-ver }}' &&
91+
(
92+
python -c 'import gi; gi.require_version("Gtk", "4.0"); from gi.repository import Gtk' &&
93+
echo 'PyGObject 4 is available' || echo 'PyGObject 4 is not available'
94+
) && (
95+
python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
96+
echo 'PyGObject 3 is available' || echo 'PyGObject 3 is not available'
97+
)
98+
python -m pip install --upgrade pyqt5 &&
99+
python -c 'import PyQt5.QtCore' &&
100+
echo 'PyQt5 is available' ||
101+
echo 'PyQt5 is not available'
102+
python -m pip install --upgrade pyside2 &&
103+
python -c 'import PySide2.QtCore' &&
104+
echo 'PySide2 is available' ||
105+
echo 'PySide2 is not available'
106+
python -m pip install --upgrade --only-binary :all: wxPython &&
107+
python -c 'import wx' &&
108+
echo 'wxPython is available' ||
109+
echo 'wxPython is not available'
110+
fi
111+
displayName: 'Install GUI dependencies with pip'
112+
81113
- bash: |
82114
CONFIG='--config-settings=setup-args=--vsenv'
83115
CONFIG="$CONFIG --config-settings=setup-args=-Dcpp_link_args=-PROFILE"

0 commit comments

Comments
 (0)