Update .gitea/workflows/test.yml
Run CI Tests / test (push) Failing after 55s

This commit is contained in:
2025-08-25 16:35:27 +02:00
parent 3c3d98458a
commit f23db2aaa2
+20 -9
View File
@@ -70,23 +70,34 @@ jobs:
ls ~/Maildir/new
test-run-cmd: |
dbus-run-session -- bash -c 'set -e
dbus-run-session -- bash -c '
set -e
set -x
echo "⚡ Running tests and generating reports..."
Xvfb :99 -screen 0 1024x768x24 &
sleep 1
# Démarrer Xvfb et capturer son PID
Xvfb :99 -screen 0 1024x768x24 &
XVFB_PID=$!
export DISPLAY=:99
dunst -print &
sleep 1
export DISPLAY=:99
# Démarrer dunst avec DBus
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
dunst -print &
DUNST_PID=$!
tmux new-session -d -s ci "bash -lc \"eval \\\"$CMD\\\"; tmux wait-for -S done\""
sleep 1
# Lancer les tests
tmux new-session -d -s ci "bash -lc \"eval \\\"$CMD\\\" ; tmux wait-for -S done\""
sleep 1
tmux wait-for done
kill $DUNST_PID
kill $XVFB_PID
# Nettoyage
kill $DUNST_PID 2>/dev/null || true
kill $XVFB_PID 2>/dev/null || true
sleep 1
echo "▶️ END"'
echo "▶️ END"
'
test-files: "tests/test_utils_dbusnotify.py"