Skip to content

Commit 2d0b462

Browse files
committed
revert the action to original state
1 parent 81a26b8 commit 2d0b462

1 file changed

Lines changed: 3 additions & 51 deletions

File tree

.github/workflows/validate.yaml

Lines changed: 3 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -33,54 +33,6 @@ jobs:
3333
- name: Install dependencies
3434
run: |
3535
python -m pip install --upgrade pip
36-
pip install pytest pytest-asyncio pytest-timeout syrupy homeassistant pytest-homeassistant-custom-component victron_mqtt
37-
- name: Collect environment info
38-
run: |
39-
set -euxo pipefail
40-
python --version
41-
pip --version
42-
pip freeze | sort > pip-freeze.txt
43-
uname -a > system-info.txt
44-
- name: Run tests with tracing
45-
env:
46-
PYTHONFAULTHANDLER: "1"
47-
PYTHONUNBUFFERED: "1"
48-
run: |
49-
set -euxo pipefail
50-
LOG_FILE="pytest-debug.log"
51-
52-
heartbeat() {
53-
while true; do
54-
sleep 60
55-
{
56-
echo "===== heartbeat $(date -u +%FT%TZ) ====="
57-
ps -eo pid,ppid,stat,etime,%cpu,%mem,cmd --sort=-%cpu | head -n 30
58-
} >> "$LOG_FILE"
59-
done
60-
}
61-
62-
heartbeat &
63-
HEARTBEAT_PID=$!
64-
65-
set +e
66-
timeout --signal=SIGABRT --kill-after=60s 75m \
67-
python -X faulthandler -m pytest tests/ -vv -ra --durations=25 --timeout=300 --timeout-method=thread \
68-
2>&1 | tee -a "$LOG_FILE"
69-
TEST_EXIT=${PIPESTATUS[0]}
70-
set -e
71-
72-
kill "$HEARTBEAT_PID" || true
73-
wait "$HEARTBEAT_PID" 2>/dev/null || true
74-
75-
echo "pytest exit code: $TEST_EXIT" | tee -a "$LOG_FILE"
76-
exit "$TEST_EXIT"
77-
- name: Upload test debug artifacts
78-
if: always()
79-
uses: actions/upload-artifact@v4
80-
with:
81-
name: pytest-debug-${{ github.run_id }}-${{ github.run_attempt }}
82-
if-no-files-found: warn
83-
path: |
84-
pytest-debug.log
85-
pip-freeze.txt
86-
system-info.txt
36+
pip install pytest pytest-asyncio syrupy homeassistant pytest-homeassistant-custom-component victron_mqtt
37+
- name: Run tests
38+
run: pytest tests/

0 commit comments

Comments
 (0)