mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
With this change pull requests from forks are also built. We yet need to verify if tags/releases are built or if we need to specify the tags as well.
31 lines
959 B
YAML
31 lines
959 B
YAML
name: SITL Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container: px4io/px4-dev-simulation-bionic:2020-01-13
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
token: ${{ secrets.ACCESS_TOKEN }}
|
|
- name: Download MAVSDK
|
|
run: wget https://github.com/mavlink/MAVSDK/releases/download/v0.23.0/mavsdk_0.23.0_ubuntu18.04_amd64.deb
|
|
- name: Install MAVSDK
|
|
run: dpkg -i mavsdk_0.23.0_ubuntu18.04_amd64.deb
|
|
- name: Install psutil
|
|
run: pip3 install psutil
|
|
- name: Build PX4 in SITL integration test mode
|
|
# Build all targets
|
|
run: DONT_RUN=1 make px4_sitl gazebo mavsdk_tests
|
|
- name: Run simulation tests
|
|
# Grind configuration: Change iterations to a number between 20 and 100 (30 minutes to about 3 hours runtime)
|
|
run: test/mavsdk_tests/mavsdk_test_runner.py --speed-factor 20 --iterations 1 --fail-early
|