From fc464e7d8cfeb217fe4a87988fc1bb4a45bb8c6b Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 19 Aug 2025 14:59:26 +0200 Subject: [PATCH] Update .gitea/workflows/test.yml --- .gitea/workflows/test.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index edc45f31..f0fd51a4 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -72,7 +72,21 @@ jobs: # Then: ls ~/Maildir/new - test-files: "tests/test_utils_duo.py" + pre-test-cmd: | + Xvfb :99 -screen 0 1024x768x24 & + XVFB_PID=$! + export DISPLAY=:99 + dunst -print & + DUNST_PID=$! + sleep 1 + test-run-cmd: "tmux new-session -d -s ci --" + post-test-cmd: | + kill $DUNST_PID || true + kill $XVFB_PID || true + sleep 1 + tmux wait-for done + + test-files: "tests/test_utils_dbusnotify.py" continue-on-error: true