lint_python.yml 661 B

1234567891011121314151617181920212223242526272829
  1. name: 'Python Lint'
  2. on: pull_request
  3. jobs:
  4. lint_python:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: 'Cleanup workspace'
  8. uses: AutoModality/action-clean@v1
  9. - name: 'Decontaminate previous build leftovers'
  10. run: |
  11. if [ -d .git ]
  12. then
  13. git submodule status \
  14. || git checkout `git rev-list --max-parents=0 HEAD | tail -n 1`
  15. fi
  16. - name: 'Checkout code'
  17. uses: actions/checkout@v2
  18. with:
  19. fetch-depth: 0
  20. - name: 'Setup python'
  21. uses: actions/setup-python@v2
  22. - name: 'Check python code with black'
  23. uses: psf/black@20.8b1