From 6dfe0c3d72f7f342825902e78cae9b1319776081 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 17 Mar 2020 17:16:17 +0100 Subject: [PATCH] github: new check for MAVSDK tester Python scripts --- .github/workflows/python_checks.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/python_checks.yml diff --git a/.github/workflows/python_checks.yml b/.github/workflows/python_checks.yml new file mode 100644 index 0000000000..94e7dee700 --- /dev/null +++ b/.github/workflows/python_checks.yml @@ -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