lint_python.yml 699 B

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