File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,22 @@ And here is a working Qt6 GitLab CI/CD config :
123
123
- python -m pytest test.py
124
124
125
125
126
+ And here is a working Qt6 Azure Pipelines CI/CD config for ``ubuntu-latest `` :
127
+
128
+ .. code-block :: yaml
129
+
130
+ # this was tested with ``ubuntu-latest`` image
131
+ - script : |
132
+ sudo apt update
133
+ sudo apt-get install -y xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 libxcb-shape0 libglib2.0-0 libgl1-mesa-dev
134
+ sudo apt-get install -y '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
135
+ sudo apt-get install -y x11-utils
136
+ /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX
137
+ displayName: 'Install and start xvfb and other dependencies on Linux for Qt GUI tests'
138
+ condition: and(succeededOrFailed(), eq(variables['Agent.OS'], 'Linux'))
139
+ # After this step, assuming you have ``pytest-qt`` installed, just run ``pytest`` and your PyQt6 tests will work
140
+
141
+
126
142
``tlambert03/setup-qt-libs ``
127
143
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
128
144
Instead manually curate list of used packages you may use ``tlambert03/setup-qt-libs `` github action: https://github.com/tlambert03/setup-qt-libs
You can’t perform that action at this time.
0 commit comments