Merge pull request #453 from pekopoke/feature/lld-IR #1264
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install pre-commit | |
| run: pip install pre-commit==3.8.0 | |
| - name: Install package | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f requirements/runtime.txt ]; then pip install -r requirements/runtime.txt; fi | |
| pip install -e . | |
| - name: Check Python syntax and imports | |
| run: | | |
| python .github/scripts/check_imports.py | |
| - name: Run pre-commit | |
| run: pre-commit run --all-files |