mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2025-12-11 09:01:54 +08:00
Add baseline SITL environment via Github actions
This commit is contained in:
16
.github/workflows/build_tests.yml
vendored
Normal file
16
.github/workflows/build_tests.yml
vendored
Normal 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
20
.github/workflows/sitl_tests.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user