Bump hacs/action from 6f81caf1dd4cc0f615444dba4d4a3ceaa22db99c to dcb30e72781db3f207d5236b861172774ab0b485 #4944
Workflow file for this run
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: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: lint-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| matrix: | |
| runs-on: ubuntu-latest | |
| name: Run ${{ matrix.check }} | |
| strategy: | |
| matrix: | |
| check: | |
| - check-ast | |
| - check-executables-have-shebangs | |
| - check-json | |
| - codespell | |
| - isort | |
| - mixed-line-ending | |
| - pyupgrade | |
| - requirements-txt-fixer | |
| - ruff-check | |
| - ruff-format | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| id: python | |
| with: | |
| python-version: "3.13" | |
| cache: 'pip' | |
| cache-dependency-path: | | |
| requirements_base.txt | |
| requirements_lint.txt | |
| - name: Install dependencies | |
| run: | | |
| scripts/install/pip_packages --requirement requirements_lint.txt | |
| pre-commit install-hooks --config .github/pre-commit-config.yaml | |
| - name: Run the check (${{ matrix.check }}) | |
| run: pre-commit run --show-diff-on-failure --hook-stage manual ${{ matrix.check }} --all-files --config .github/pre-commit-config.yaml | |
| lint-json: | |
| runs-on: ubuntu-latest | |
| name: With JQ | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Run validation | |
| run: jq -r -e -c . tests/fixtures/*.json |