mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 08:47:34 +08:00
github: new check for MAVSDK tester Python scripts
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
name: Python CI checks
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
token: ${{ secrets.ACCESS_TOKEN }}
|
||||
- name: Install tools
|
||||
run: sudo apt-get install python-setuptools flake8 mypy -y
|
||||
- name: Check MAVSDK test scripts with mypy
|
||||
run: mypy --strict test/mavsdk_tests/*.py
|
||||
- name: Check MAVSDK test scripts with flake8
|
||||
run: flake8 test/mavsdk_tests/*.py
|
||||
Reference in New Issue
Block a user