lint_python.yml 696 B

12345678910111213141516171819202122232425262728293031
  1. name: 'Python Lint'
  2. on:
  3. push:
  4. branches:
  5. - dev
  6. - "release*"
  7. tags:
  8. - '*'
  9. pull_request:
  10. jobs:
  11. lint_python:
  12. runs-on: [self-hosted,FlipperZeroShell]
  13. steps:
  14. - name: 'Decontaminate previous build leftovers'
  15. run: |
  16. if [ -d .git ]
  17. then
  18. git submodule status \
  19. || git checkout `git rev-list --max-parents=0 HEAD | tail -n 1`
  20. fi
  21. - name: 'Checkout code'
  22. uses: actions/checkout@v2
  23. with:
  24. fetch-depth: 0
  25. ref: ${{ github.event.pull_request.head.sha }}
  26. - name: 'Check code formatting'
  27. run: SET_GH_OUTPUT=1 FBT_TOOLCHAIN_PATH=/opt ./fbt lint_py