mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 22:50:49 +08:00
ci(usb-ids): check board USB IDs on PRs that change them
The workflow triggers on pull requests that touch a board defconfig or the USB ID tooling, and checks only the defconfigs the PR adds or modifies. The file list comes from diffing the checked-out PR merge commit against its base parent, so no API call or token is needed. A PR that changes the tooling itself is checked against every board, so a checker change is proven on the real tree and not only by its unit tests. A test keeps the tooling list and the workflow paths filter in sync. A manual run checks every board. There is no push or scheduled run: the registry repo checks its own changes against PX4 main, and board changes reach main only through PRs. The mypy and flake8 step for the checker and runner lives in python_checks.yml with the other Python tooling checks. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
1 parent
89549434e8
commit
ec2687abc3
4 files changed
+267
-1
No files matched your search
@@ -27,7 +27,7 @@ jobs:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Install tools
|
||||
run: pip install mypy types-requests flake8 pyyaml
|
||||
run: pip install mypy types-requests types-PyYAML flake8 pyyaml
|
||||
|
||||
- name: Check MAVSDK test scripts with mypy
|
||||
run: mypy --strict test/mavsdk_tests/*.py
|
||||
@@ -35,6 +35,12 @@ jobs:
|
||||
- name: Check MAVSDK test scripts with flake8
|
||||
run: flake8 test/mavsdk_tests/*.py
|
||||
|
||||
- name: Check USB ID tooling with mypy and flake8
|
||||
working-directory: Tools/ci
|
||||
run: |
|
||||
mypy --strict check_usb_ids.py usb_ids_runner.py test_check_usb_ids.py test_usb_ids_runner.py
|
||||
flake8 check_usb_ids.py usb_ids_runner.py test_check_usb_ids.py test_usb_ids_runner.py
|
||||
|
||||
- name: Check ROS workspace tooling
|
||||
run: |
|
||||
flake8 Tools/ros2/*.py
|
||||
|
||||
Reference in new issue
Block a user