Skip to content

Commit 39d3ed1

Browse files
authored
Create hil-boot-check.yml
1 parent 2abcd8e commit 39d3ed1

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: HIL Boot Check (No-Sentinel)
2+
3+
on:
4+
workflow_run:
5+
workflows: ["IDF Build (ESP32-P4)"]
6+
types: [completed]
7+
8+
jobs:
9+
hil:
10+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
11+
runs-on: [self-hosted, esp32] # self-hosted runner with the Tab5 on USB
12+
permissions:
13+
contents: read
14+
actions: read
15+
16+
env:
17+
ESPPORT: /dev/ttyUSB0 # adjust for your runner
18+
ESPBAUD: "460800"
19+
20+
steps:
21+
- name: Checkout tests
22+
uses: actions/checkout@v4
23+
with:
24+
lfs: false
25+
submodules: recursive
26+
27+
- name: Download build artifact from the triggering run
28+
uses: actions/download-artifact@v5
29+
with:
30+
name: tab5-build
31+
run-id: ${{ github.event.workflow_run.id }}
32+
repository: ${{ github.repository }}
33+
github-token: ${{ secrets.GITHUB_TOKEN }}
34+
path: _dl
35+
36+
- name: Python & deps
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: "3.x"
40+
- run: |
41+
python -m pip install --upgrade pip
42+
pip install pytest pytest-embedded pytest-embedded-serial pytest-embedded-idf esptool
43+
44+
# Optional: if your runner needs udev/dialout prep, do it out-of-band.
45+
46+
- name: Run boot-loop check
47+
working-directory: _dl/platforms/tab5/build
48+
env:
49+
ESPPORT: ${{ env.ESPPORT }}
50+
ESPBAUD: ${{ env.ESPBAUD }}
51+
run: |
52+
# pytest-embedded can detect ports automatically via esptool,
53+
# but we pass explicit port/baud for reliability.
54+
pytest -q \
55+
--embedded-services esp,idf,serial \
56+
--port "$ESPPORT" --baud "$ESPBAUD" \
57+
../../../tests/hil

0 commit comments

Comments
 (0)