mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
38 lines
773 B
YAML
38 lines
773 B
YAML
name: Python CI Checks
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}"]
|
|
steps:
|
|
- uses: runs-on/action@v2
|
|
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.10"
|
|
|
|
- name: Install tools
|
|
run: pip install mypy types-requests flake8
|
|
|
|
- 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
|