Repository navigation
Add the AI usage section and mark the required sections #67
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: Linting | |
| on: | |
| push: | |
| branches: | |
| - 'release-v**' | |
| pull_request: | |
| branches: | |
| - 'release-v**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| pre_job: | |
| name: Path match check | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| # Map a step output to a job output | |
| outputs: | |
| lint: ${{ steps.filter.outputs.lint }} | |
| steps: | |
| # paths-filter needs a checkout to diff push events | |
| - uses: actions/checkout@v7.0.1 | |
| - id: filter | |
| uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3 | |
| with: | |
| predicate-quantifier: every | |
| # Not '!**.po': picomatch applies that negation at the repo root only. | |
| filters: | | |
| lint: | |
| - '!**/*.po' | |
| - '!**/*.json' | |
| linting: | |
| name: All file linting | |
| needs: pre_job | |
| if: ${{ needs.pre_job.outputs.lint == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - uses: astral-sh/setup-uv@v8.2.0 | |
| with: | |
| enable-cache: true | |
| cache-python: true | |
| - name: Install and verify lock | |
| run: uv sync --group dev --locked | |
| - name: Run prek hooks | |
| run: uv run prek run --all-files --show-diff-on-failure |