From e8f593bf765933ea601dc9c300a7ac27908a4aa2 Mon Sep 17 00:00:00 2001 From: Aidan <46799759+PossiblyAShrub@users.noreply.github.com> Date: Sun, 30 Nov 2025 22:22:37 -0700 Subject: [PATCH] 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 --- .github/workflows/simulator-tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/simulator-tests.yml diff --git a/.github/workflows/simulator-tests.yml b/.github/workflows/simulator-tests.yml new file mode 100644 index 0000000..4b0c4dc --- /dev/null +++ b/.github/workflows/simulator-tests.yml @@ -0,0 +1,25 @@ +name: Simulator Tests + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: self-hosted + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: pip install -r requirements.txt + - name: Tests + run: | + PYTHONPATH=. python3 mavctl/tests/flight_tests/first_flight_test.py & + PYTHONPATH=. python3 test.py + wait