From a97072eca05258ea5b9ec7518551eeca2e88530c Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Thu, 18 Mar 2021 19:48:06 +0800 Subject: [PATCH] add first integration test for CI --- .github/workflows/main.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 585775e48..b01111fd9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,10 +15,10 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.x - - name: Install Platform IO + - name: Install Platform IO and meshtastic-python run: | python -m pip install --upgrade pip - pip install -U platformio + pip install -U platformio meshtastic - name: Install extra python tools run: | pip install -U adafruit-nrfutil @@ -31,6 +31,11 @@ jobs: run: platformio run -e heltec - name: Build for lora-relay-v1 run: platformio run -e lora-relay-v1 - # Turn off linux for now - name: Build for native + - name: Build for native run: platformio run -e native + - name: Integration test + run: | + .pio/build/native/program & + sleep 1 + python3 -c 'from meshtastic.test import testSimulator; testSimulator()' +