Add baseline SITL environment via Github actions

This commit is contained in:
Lorenz Meier 2019-12-17 09:34:22 +01:00
parent 81809d8234
commit cd75cc08d3
2 changed files with 36 additions and 0 deletions

16
.github/workflows/build_tests.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Build Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container: px4io/px4-dev-base-bionic:2019-10-24
steps:
- uses: actions/checkout@v1
- name: check_format
env:
CI: true
run: make check_format
- name: main tests
run: make tests

20
.github/workflows/sitl_tests.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: SITL Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container: px4io/px4-dev-simulation-bionic:2019-12-18
steps:
- uses: actions/checkout@v1
- name: Set Python 3 as default
run: update-alternatives --install /usr/bin/python python /usr/bin/python3 10
- name: Install psutil
run: pip3 install psutil
- name: Build PX4 in simulation mode
# Build all targets
run: make px4_sitl_default sitl_gazebo mavsdk_tests
# Check: Are the env variables needed?run: PX4_MAVSDK_TESTING=y DONT_RUN=1 make px4_sitl gazebo mavsdk_tests
- name: Run simulation tests
run: test/mavsdk_tests/mavsdk_test_runner.py --speed-factor 100