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

Skip to content

Try running GUI tests on all platforms on Azure. #16921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,48 @@ stages:
python -m pip install -r requirements/testing/all.txt -r requirements/testing/extra.txt
displayName: 'Install dependencies with pip'

- pwsh: |
Invoke-WebRequest `
https://github.com/wingtk/gvsbuild/releases/download/2025.5.0/GTK4_Gvsbuild_2025.5.0_x64.zip `
-OutFile $(Agent.BuildDirectory)\GTK4.zip
Write-Host "##vso[task.prependpath]$(Agent.BuildDirectory)\gtk4\bin"
displayName: 'Download system dependencies'

- task: ExtractFiles@1
inputs:
archiveFilePatterns: '$(Agent.BuildDirectory)\GTK4.zip'
destinationFolder: '$(Agent.BuildDirectory)\gtk4'

- pwsh: |
# GUI toolkits are pip-installable only for some versions of Python so don't fail if we can't install
# them. Make it easier to check whether the install was successful by trying to import the toolkit
# (sometimes, the install appears to be successful but shared libraries cannot be loaded at runtime, so
# an actual import is a better check).
python -m pip install (Resolve-Path $(Agent.BuildDirectory)\gtk4\wheels\pycairo*.whl) cairocffi>=0.8
if ('$(python.version)' -eq '3.13') {
python -m pip install (Resolve-Path $(Agent.BuildDirectory)\gtk4\wheels\PyGObject*.whl) &&
(
python -c 'import gi; gi.require_version("Gtk", "4.0"); from gi.repository import Gtk' &&
echo 'PyGObject 4 is available' || echo 'PyGObject 4 is not available'
) && (
python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
echo 'PyGObject 3 is available' || echo 'PyGObject 3 is not available'
)
python -m pip install --upgrade --only-binary :all: wxPython &&
python -c 'import wx' &&
echo 'wxPython is available' ||
echo 'wxPython is not available'
}
python -m pip install --upgrade pyqt5 &&
python -c 'import PyQt5.QtCore' &&
echo 'PyQt5 is available' ||
echo 'PyQt5 is not available'
python -m pip install --upgrade pyside2 &&
python -c 'import PySide2.QtCore' &&
echo 'PySide2 is available' ||
echo 'PySide2 is not available'
displayName: 'Install GUI dependencies with pip'

- bash: |
CONFIG='--config-settings=setup-args=--vsenv'
CONFIG="$CONFIG --config-settings=setup-args=-Dcpp_link_args=-PROFILE"
Expand Down
Loading