| 1 | name: Lint |
| 2 | on: [push, pull_request] |
| 3 | jobs: |
| 4 | build: |
| 5 | if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository |
| 6 | runs-on: ubuntu-latest |
| 7 | steps: |
| 8 | - uses: actions/checkout@v6 |
| 9 | - uses: actions/setup-python@v6 |
| 10 | with: |
| 11 | python-version: '3.10' |
| 12 | cache: pip |
| 13 | cache-dependency-path: setup.py |
| 14 | - run: pip install --upgrade check-manifest flake8 isort setuptools |
| 15 | - run: check-manifest |
| 16 | - run: flake8 . |
| 17 | - run: isort . --check-only |