FBWA Rudder Mixing Logic + Motor Trim (#103) #73
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SITL Build Test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| sitl_build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| pip install -r zp_sitl/requirements.txt | |
| - name: Build SITL | |
| run: | | |
| cd zp_sitl | |
| ./scripts/build_sitl.sh | |
| - name: SITL Syntax Check (Bytecode Compilation) | |
| run: | | |
| python -m compileall -q zp_sitl/ | |
| - name: Test SITL runs | |
| run: | | |
| cd zp_sitl | |
| timeout 10s python sitl_main.py || [ $? -eq 124 ] |