Skip to content

Commit 28a379a

Browse files
authored
Merge pull request #442 from Czaki/qt_troubleshooting
2 parents 82f6bce + 767fc7c commit 28a379a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/troubleshooting.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ More details can be found in `issue #206`_.
6262
.. _issue #206: https://github.com/pytest-dev/pytest-qt/issues/206
6363

6464
GitHub Actions
65-
----------------
65+
--------------
6666

6767
When using ``ubuntu-latest`` on Github Actions, the package ``libxkbcommon-x11-0`` has to be installed, ``DISPLAY`` should be set and ``xvfb`` run. More details can be found in `issue #293`_.
6868

6969
.. _issue #293: https://github.com/pytest-dev/pytest-qt/issues/293
7070

7171
Since Qt in version 5.15 ``xcb`` libraries are not distributed with Qt so this library in version at least 1.11 on runner. See more in https://codereview.qt-project.org/c/qt/qtbase/+/253905
7272

73-
For Github Actions, Azure pipelines and Travis-CI you will need to install ``libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0``
73+
For Github Actions, Azure pipelines and Travis-CI you will need to install ``libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils``
7474

7575
As an example, here is a working config :
7676

@@ -96,9 +96,13 @@ As an example, here is a working config :
9696
python-version: ${{ matrix.python }}
9797
- name: setup ${{ matrix.os }}
9898
run: |
99-
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
99+
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils
100100
/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
101101
102+
``tlambert03/setup-qt-libs``
103+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104+
Instead manually curate list of used packages you may use ``tlambert03/setup-qt-libs`` github action: https://github.com/tlambert03/setup-qt-libs
105+
102106
pytest-xvfb
103107
~~~~~~~~~~~
104108

0 commit comments

Comments
 (0)