forked from mavlink/mavlink2rest
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (31 loc) · 788 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Check code style
run: cargo fmt -- --check
- name: Build
run: cargo build --verbose
- name: Run SITL & MAVLink2Rest
timeout-minutes: 5
run: |
pip install --user aiohttp asyncio requests
wget https://firmware.ardupilot.org/Sub/stable-4.0.2/SITL_x86_64_linux_gnu/ardusub
chmod +x ardusub
./ardusub --model vectored &
sleep 5
cargo run -- --connect tcpout:0.0.0.0:5760 &
sleep 5
./tests/run.py