lint_python.yml 683 B

1234567891011121314151617181920212223242526272829
  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 ]; then
  17. git submodule status || git checkout "$(git rev-list --max-parents=0 HEAD | tail -n 1)"
  18. fi
  19. - name: 'Checkout code'
  20. uses: actions/checkout@v2
  21. with:
  22. fetch-depth: 0
  23. ref: ${{ github.event.pull_request.head.sha }}
  24. - name: 'Check code formatting'
  25. run: SET_GH_OUTPUT=1 FBT_TOOLCHAIN_PATH=/runner/_work ./fbt lint_py