From 50d8dfd946af5c352b51e5f4e79c000959bea85e Mon Sep 17 00:00:00 2001 From: mbkma Date: Sun, 15 Mar 2026 12:09:03 +0100 Subject: try xfvb to run tests with virtual display --- .github/workflows/archlinux.sh | 2 +- .github/workflows/builds.sh | 6 ++---- .github/workflows/debian.sh | 1 + .github/workflows/fedora.sh | 1 + .github/workflows/ubuntu.sh | 1 + 5 files changed, 6 insertions(+), 5 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/archlinux.sh b/.github/workflows/archlinux.sh index c58c655..26df3cb 100755 --- a/.github/workflows/archlinux.sh +++ b/.github/workflows/archlinux.sh @@ -37,7 +37,7 @@ requires+=( python upower which - yelp-tools + xorg-server-xvfb ) infobegin "Update system" diff --git a/.github/workflows/builds.sh b/.github/workflows/builds.sh index 992281a..afaee34 100755 --- a/.github/workflows/builds.sh +++ b/.github/workflows/builds.sh @@ -27,9 +27,7 @@ if [ -f meson.build ]; then infoend infobegin "Test (meson)" - ninja -C _build test || { - true - } + xvfb-run ninja -C _build test infoend infobegin "Dist (meson)" @@ -37,7 +35,7 @@ if [ -f meson.build ]; then # https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9 # https://git-scm.com/docs/git-config/2.35.2#Documentation/git-config.txt-safedirectory git config --global --add safe.directory ${PWD} - meson dist -C _build --no-tests + xvfb-run meson dist -C _build infoend fi diff --git a/.github/workflows/debian.sh b/.github/workflows/debian.sh index b85052b..d0e80f0 100755 --- a/.github/workflows/debian.sh +++ b/.github/workflows/debian.sh @@ -46,6 +46,7 @@ requires+=( gobject-introspection libgirepository1.0-dev libdconf-dev + xvfb ) infobegin "Update system" diff --git a/.github/workflows/fedora.sh b/.github/workflows/fedora.sh index b71a495..32893cf 100755 --- a/.github/workflows/fedora.sh +++ b/.github/workflows/fedora.sh @@ -40,6 +40,7 @@ requires+=( iso-codes-devel gobject-introspection-devel dconf-devel + xorg-x11-server-Xvfb ) infobegin "Update system" diff --git a/.github/workflows/ubuntu.sh b/.github/workflows/ubuntu.sh index 888fde1..6635065 100755 --- a/.github/workflows/ubuntu.sh +++ b/.github/workflows/ubuntu.sh @@ -44,6 +44,7 @@ requires+=( gobject-introspection libgirepository1.0-dev libdconf-dev + xvfb ) infobegin "Update system" -- cgit v1.2.1