kopia lustrzana https://github.com/lora-aprs/LoRa_APRS_iGate
update hw testing
rodzic
82a2666241
commit
82d32e1f24
|
@ -78,19 +78,56 @@ jobs:
|
||||||
path: output
|
path: output
|
||||||
|
|
||||||
|
|
||||||
remote_testing:
|
#remote_testing:
|
||||||
name: Remote Testing
|
# name: Remote Testing
|
||||||
runs-on: ubuntu-20.04
|
# runs-on: ubuntu-20.04
|
||||||
env:
|
# env:
|
||||||
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
|
# 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:
|
steps:
|
||||||
- name: Setup Cache
|
- name: Setup Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cache/pip
|
.cache/pip
|
||||||
~/.platformio
|
.platformio
|
||||||
key: remote-cache
|
key: hw-cache
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
|
@ -100,10 +137,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install --upgrade platformio
|
pip install --upgrade platformio
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: List Devices
|
|
||||||
run: pio remote device list
|
|
||||||
- name: PlatformIO Test
|
- 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 }}
|
||||||
|
|
Ładowanie…
Reference in New Issue