From 181b6ee0051351eec301b6482c77ad2415eac1c5 Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Mon, 21 Dec 2020 21:39:31 -0800 Subject: [PATCH] Re-introduce xvfb debug steps --- .github/workflows/test.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index acb450ce..eef8bb8c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,8 +53,8 @@ jobs: - name: "Install Linux VirtualDisplay" if: runner.os == 'Linux' run: | - sudo apt-get install -y libxkbcommon-x11-0 xvfb x11-utils - sudo apt-get install --no-install-recommends -y libyaml-dev libegl1-mesa libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 + sudo apt-get install -y libxkbcommon-x11-0 x11-utils + sudo apt-get install --no-install-recommends -y libyaml-dev libegl1-mesa libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 pip install pytest-xvfb - name: 'Debug Info' run: | @@ -65,11 +65,19 @@ jobs: pip list echo pyqtgraph system info python -c "import pyqtgraph as pg; pg.systemInfo()" - echo display information - shell: bash env: QT_DEBUG_PLUGINS: 1 + - name: 'XVFB Display Info' + run: | + xvfb-run --server-args="-screen 0, 1920x1200x24 -ac +extension GLX +render -noreset" python -c "from pyqtgraph.opengl.glInfo import GLTest" + xvfb-run --server-args="-screen 0, 1920x1200x24 -ac +extension GLX +render -noreset" python -m pyqtgraph.util.get_resolution + if: runner.os == 'Linux' + - name: 'Display Info' + run: | + python -c "from pyqtgraph.opengl.glInfo import GLTest" + python -m pyqtgraph.util.get_resolution + if: runner.os != 'Linux' - name: Run Tests run: | pytest . -v \