From 82d32e1f249e366cffcbc44e10031fda2a0edf49 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Fri, 28 Apr 2023 17:11:54 +0200 Subject: [PATCH] update hw testing --- .github/workflows/build_check.yml | 58 ++++++++++++++++++++++++------- 1 file changed, 46 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index f86f656..90f8fcf 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -78,19 +78,56 @@ jobs: path: output - remote_testing: - name: Remote Testing - runs-on: ubuntu-20.04 - env: - PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} + #remote_testing: + # name: Remote Testing + # runs-on: ubuntu-20.04 + # env: + # PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} + # steps: + # - name: Setup Cache + # uses: actions/cache@v3 + # with: + # path: | + # ~/.cache/pip + # ~/.platformio + # key: remote-cache + # - name: Setup Python + # uses: actions/setup-python@v4 + # with: + # python-version: '3.10' + # - name: Install PlatformIO + # shell: bash + # run: | + # python -m pip install --upgrade pip + # pip install --upgrade platformio + # + # - name: Checkout code + # uses: actions/checkout@v3 + # - name: List Devices + # run: pio remote device list + # - name: PlatformIO Test + # run: pio remote test -v -r --upload-port /dev/ttyUSB4 --test-port /dev/ttyUSB4 + + hw_testing: + name: Hardware Testing + runs-on: self-hosted + strategy: + matrix: + include: + - board: 'board0' + port: '/dev/ttyUSB0' + - board: 'board1' + port: '/dev/ttyUSB1' + - board: 'board2' + port: '/dev/ttyUSB2' steps: - name: Setup Cache uses: actions/cache@v3 with: path: | - ~/.cache/pip - ~/.platformio - key: remote-cache + .cache/pip + .platformio + key: hw-cache - name: Setup Python uses: actions/setup-python@v4 with: @@ -100,10 +137,7 @@ jobs: run: | python -m pip install --upgrade pip pip install --upgrade platformio - - name: Checkout code uses: actions/checkout@v3 - - name: List Devices - run: pio remote device list - name: PlatformIO Test - run: pio remote test -v -r --upload-port /dev/ttyUSB4 --test-port /dev/ttyUSB4 + run: pio test --upload-port ${{ matrix.port }} --test-port ${{ matrix.port }}