summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-07-09 11:02:40 +0700
committerGitHub <[email protected]>2025-07-09 11:02:40 +0700
commit42de71f3d00a76c96dac484343625f0e871ad26f (patch)
treee1269ca786f51a835cd04185aff37feb57ed5716 /.github/workflows
parentea64300a9ad57fbdcafbed189b3d358bf9b6912e (diff)
parent091c6a7889d8973c06415ff13c118c9e32516cf7 (diff)
Merge pull request #3166 from hathach/hil-skip-passed-board-in-rerun
try to skip passed board in hil test when re-run
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml15
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5e11f8a29..ff59421ce 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -199,17 +199,20 @@ jobs:
runs-on: [self-hosted, X64, hathach, hardware-in-the-loop]
steps:
- name: Clean workspace
+ if: github.run_attempt == '1'
run: |
- echo "Cleaning up previous run"
+ echo "Cleaning up for the first run"
rm -rf "${{ github.workspace }}"
mkdir -p "${{ github.workspace }}"
- name: Checkout TinyUSB
+ if: github.run_attempt == '1'
uses: actions/checkout@v4
with:
sparse-checkout: test/hil
- name: Download Artifacts
+ if: github.run_attempt == '1'
uses: actions/download-artifact@v4
with:
path: cmake-build
@@ -218,7 +221,15 @@ jobs:
- name: Test on actual hardware
run: |
ls cmake-build/
- python3 test/hil/hil_test.py ${{ env.HIL_JSON }}
+
+ # Skip boards that passed with previous run, file is generated by hil_test.py
+ SKIP_BOARDS=""
+ if [ -f ${{ env.HIL_JSON }}.skip ]; then
+ SKIP_BOARDS=$(cat "${HIL_JSON}.skip")
+ fi
+ echo "SKIP_BOARDS=$SKIP_BOARDS"
+
+ python3 test/hil/hil_test.py ${{ env.HIL_JSON }} $SKIP_BOARDS
# ---------------------------------------
# Hardware in the loop (HIL)