Refactor set_params helper to reduce tests runtime #314
Workflow file for this run
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: Run Python Copter Tests | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release-* | |
| paths: | |
| - radio/** | |
| pull_request: | |
| branches: | |
| - main | |
| - release-* | |
| paths: | |
| - radio/** | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| services: | |
| service-name-1: | |
| image: kushmakkapati/ardupilot_sitl:latest | |
| env: | |
| VEHICLE: ArduCopter | |
| ports: | |
| - 5760:5760 | |
| options: >- | |
| --name ardupilot-copter | |
| 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 plane_only" --log-cli-level=DEBUG |