2020-03-01 03:05:48 +00:00
|
|
|
name: Continuous Integration
|
2020-03-16 00:42:48 +00:00
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
2020-02-27 01:20:19 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-02-23 09:07:38 +00:00
|
|
|
setup:
|
2020-02-27 01:20:19 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-03-09 05:16:41 +00:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
2020-02-27 01:20:19 +00:00
|
|
|
- name: Setup Python
|
2021-03-09 05:16:41 +00:00
|
|
|
uses: actions/setup-python@v2
|
2020-02-27 01:20:19 +00:00
|
|
|
with:
|
2020-02-27 01:37:08 +00:00
|
|
|
python-version: 3.x
|
2021-03-18 11:48:06 +00:00
|
|
|
- name: Install Platform IO and meshtastic-python
|
2020-02-27 01:20:19 +00:00
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
2021-03-18 11:48:06 +00:00
|
|
|
pip install -U platformio meshtastic
|
2020-07-10 04:37:45 +00:00
|
|
|
- name: Install extra python tools
|
2020-07-10 18:44:46 +00:00
|
|
|
run: |
|
2020-07-10 04:49:07 +00:00
|
|
|
pip install -U adafruit-nrfutil
|
2021-02-07 02:49:14 +00:00
|
|
|
- name: Build for tbeam
|
|
|
|
run: platformio run -e tbeam
|
|
|
|
- name: Build for heltec
|
|
|
|
run: platformio run -e heltec
|
|
|
|
- name: Build for lora-relay-v1
|
|
|
|
run: platformio run -e lora-relay-v1
|
2021-03-18 11:48:06 +00:00
|
|
|
- name: Build for native
|
2021-03-15 05:09:52 +00:00
|
|
|
run: platformio run -e native
|
2021-03-18 11:48:06 +00:00
|
|
|
- name: Integration test
|
|
|
|
run: |
|
|
|
|
.pio/build/native/program &
|
2021-03-31 03:26:19 +00:00
|
|
|
sleep 5
|
2021-03-31 04:08:48 +00:00
|
|
|
echo "Simulator started, launching python test..."
|
2021-03-18 11:48:06 +00:00
|
|
|
python3 -c 'from meshtastic.test import testSimulator; testSimulator()'
|
|
|
|
|