Update .gitea/workflows/test.yml
This commit is contained in:
+17
-28
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user