Fix github workflow status badges #170
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
if: ${{ false }} # Disable step until TCP connection is fixed | |
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 |