-
Notifications
You must be signed in to change notification settings - Fork 13
56 lines (50 loc) · 1.22 KB
/
python_tests_plane.yml
File metadata and controls
56 lines (50 loc) · 1.22 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Run Python Plane Tests
permissions:
contents: read
on:
push:
branches:
- main
- release-*
paths:
- radio/**
pull_request:
branches:
- main
- release-*
paths:
- radio/**
jobs:
build:
name: Run plane tests
runs-on: ubuntu-latest
services:
service-name-1:
image: kushmakkapati/ardupilot_sitl:latest
env:
VEHICLE: ArduPlane
ports:
- 5760:5760
options: >-
--name ardupilot-plane
--health-cmd "test -f /tmp/fgcs_done || exit 1"
--health-interval 5s
--health-timeout 3s
--health-retries 240
--health-start-period 15s
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
working-directory: radio
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install -r requirements.txt
- name: Test with pytest
working-directory: radio
timeout-minutes: 15
run: pytest -m "not copter_only" --log-cli-level=DEBUG