name: Lint on: [push, pull_request] jobs: build: if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: python-version: '3.10' cache: pip cache-dependency-path: setup.py - run: pip install --upgrade check-manifest flake8 isort setuptools - run: check-manifest - run: flake8 . - run: isort . --check-only