Skip to content

Commit e8f593b

Browse files
WIP: Setup Simulator Tests in CI
This needs some more work, but I think this is what the final simulator tests will look like. TODO: - [ ] The test script needs to be more resilient to timing (waiting for arm) - [ ] We should add timeouts - [ ] We should collect and report the `.tlog` file for debugging - [ ] This needs to be validated to see if it will actually work
1 parent 6bee0c1 commit e8f593b

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Simulator Tests
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: self-hosted
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: "3.10"
19+
- name: Install dependencies
20+
run: pip install -r requirements.txt
21+
- name: Tests
22+
run: |
23+
PYTHONPATH=. python3 mavctl/tests/flight_tests/first_flight_test.py &
24+
PYTHONPATH=. python3 test.py
25+
wait

0 commit comments

Comments
 (0)