Repository navigation
77 lines (73 loc) · 2.08 KB
/
Copy pathtest_renode.yml
File metadata and controls
77 lines (73 loc) · 2.08 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: test Renode
on:
pull_request:
paths:
- '.github/actions/**'
- '.github/workflows/test_renode.yml'
- 'ArduPlane/**'
- 'libraries/**'
- 'modules/**'
- 'Tools/ardupilotwaf/**'
- 'Tools/renode/**'
- 'Tools/scripts/**'
- 'waf'
- 'wscript'
push:
paths:
- '.github/actions/**'
- '.github/workflows/test_renode.yml'
- 'ArduPlane/**'
- 'libraries/**'
- 'modules/**'
- 'Tools/ardupilotwaf/**'
- 'Tools/renode/**'
- 'Tools/scripts/**'
- 'waf'
- 'wscript'
workflow_dispatch:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: write
contents: read
jobs:
cubeorangeplus-quadplane:
runs-on: ubuntu-22.04
container:
image: ardupilot/ardupilot-dev-chibios:v0.2.0
options: --user root
steps:
- name: Install Renode runtime dependencies
run: |
apt-get update
apt-get install --no-install-recommends -y curl dosfstools python3-pytest
python3 -m pip install --no-cache-dir pyfatfs==1.1.0
- uses: actions/checkout@v7
with:
submodules: recursive
- uses: ./.github/actions/setup-ccache
with:
key-suffix: renode-quadplane
- name: Fetch Renode
run: Tools/renode/tests/fetch_renode.sh
- name: Run Renode unit tests
env:
PYTHONPATH: ${{ github.workspace }}/modules/mavlink
run: python3 -m pytest -q Tools/renode/tests
- name: Fly CubeOrangePlus quadplane mission
env:
PYTHONPATH: ${{ github.workspace }}/modules/mavlink
run: >-
Tools/renode/tests/test_physics_flight.py quadplane
--renode build/renode/renode --timeout 900
- name: ccache statistics
run: ccache -s
- uses: ./.github/actions/save-ccache
with:
key-suffix: renode-quadplane
- uses: actions/upload-artifact@v7
if: always()
with:
name: renode-CubeOrangePlus-quadplane
path: build/renode-test/