From 335ae4f9125e9faf18d4be94be1f1e4109fc7291 Mon Sep 17 00:00:00 2001 From: dbouget Date: Tue, 31 Oct 2023 11:49:01 +0100 Subject: [PATCH] Trying headless GUI unit tests [skip ci] --- .github/workflows/build_ubuntu.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_ubuntu.yml b/.github/workflows/build_ubuntu.yml index 7c960f2..c87185f 100644 --- a/.github/workflows/build_ubuntu.yml +++ b/.github/workflows/build_ubuntu.yml @@ -45,7 +45,7 @@ jobs: sudo apt-get install -y pocl-opencl-icd - name: Setup OpenGL - run: sudo apt-get install -y libopengl0 + run: sudo apt install -y '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev - name: Debug clinfo run: clinfo @@ -84,10 +84,14 @@ jobs: pyinstaller --log-level INFO --noconfirm --clean assets/main.spec - name: Test executable xvfb + env: + DISPLAY: ':1' run: xvfb-run ./dist/Raidionics/Raidionics & sleep 5; kill -INT %+ shell: bash - name: Test executable + env: + DISPLAY: ':1' run: QT_QPA_PLATFORM="offscreen" ./dist/Raidionics/Raidionics & sleep 5; kill -INT %+ shell: bash #