lint.yaml 585 B

12345678910111213141516171819202122232425
  1. name: lint
  2. on: [push, pull_request]
  3. concurrency:
  4. group: ${{ github.workflow }}-${{ github.ref }}
  5. cancel-in-progress: true
  6. jobs:
  7. lint:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v3
  11. - name: Set up Python 3.7
  12. uses: actions/setup-python@v4
  13. with:
  14. python-version: 3.7
  15. - name: Upgrade pip
  16. run: python -m pip install pip --upgrade --user
  17. - name: Install pre-commit hooks
  18. run: |
  19. pip install pre-commit
  20. pre-commit install
  21. - name: Lint
  22. run: pre-commit run --all-files