mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 10:50:40 +00:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Continuous Integration
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
setup:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.x
|
|
- name: Install Platform IO and meshtastic-python
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -U platformio meshtastic
|
|
- name: Install extra python tools
|
|
run: |
|
|
pip install -U adafruit-nrfutil
|
|
- 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
|
|
- name: Build for native
|
|
run: platformio run -e native
|
|
- name: Integration test
|
|
run: |
|
|
.pio/build/native/program &
|
|
sleep 5
|
|
echo "Simulator started, launching python test..."
|
|
python3 -c 'from meshtastic.test import testSimulator; testSimulator()'
|
|
|