Allow pytest discovery to find and run Python tests #16
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: ci | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- run: pip install --upgrade pip | |
- run: pip install numpy pytest setuptools | |
- run: pip install --editable modules/mavlink/pymavlink | |
- run: pytest --ignore=modules/DroneCAN | |
--ignore=modules/gtest | |
--ignore=modules/mavlink/pymavlink/generator/C/test/posix/sha256_test.py | |
--ignore=modules/waf/playground | |
--ignore=Tools/autotest/test_build_options.py | |
--ignore=Tools/autotest/test_param_upgrade.py | |
--ignore=Tools/FilterTestTool/run_filter_test.py | |
--ignore=Tools/ros2/ardupilot_dds_tests/test |