From f4d0cfa42199b75e9501b16222e3deef128bcc70 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Mon, 25 Aug 2025 16:09:12 +0200 Subject: [PATCH] Update .gitea/workflows/test.yml --- .gitea/workflows/test.yml | 45 +++++++++++++++------------------------ 1 file changed, 17 insertions(+), 28 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 95f623be..bef9ae79 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -70,35 +70,24 @@ jobs: ls ~/Maildir/new test-run-cmd: | - dbus-run-session -- bash -c ' - set -e - set -x - echo "⚡ Running tests and generating reports..." + dbus-run-session -- bash -c 'set -e + set -x + echo "⚡ Running tests and generating reports..." + Xvfb :99 -screen 0 1024x768x24 & + XVFB_PID=$! + export DISPLAY=:99 + dunst -print & + DUNST_PID=$! + sleep 1 + tmux new-session -d -s ci "bash -lc \"eval \\\"$CMD\\\"; tmux wait-for -S done\"" + tmux pipe-pane -t ci -o "tee outputs/pytest-output.log" + sleep 1 + tmux wait-for done + kill $DUNST_PID || true + kill $XVFB_PID || true + sleep 1 + echo "▶️ END"' - # PRE - Xvfb :99 -screen 0 1024x768x24 & - XVFB_PID=$! - export DISPLAY=:99 - - dunst -print & - DUNST_PID=$! - sleep 1 - - # MAIN via tmux - tmux new-session -d -s ci "bash -lc \"eval \\\"$CMD\\\"; tmux wait-for -S done\"" - tmux pipe-pane -t ci -o "tee outputs/pytest-output.log" - sleep 1 - tmux wait-for done - - - # POST - kill $DUNST_PID - kill $XVFB_PID - sleep 1 - - echo "▶️ END" - ' - test-files: "tests/test_utils_dbusnotify.py" continue-on-error: true