Run Lint against multiple Python versions #12203
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: [push, pull_request, workflow_dispatch] | |
| permissions: {} | |
| env: | |
| FORCE_COLOR: 1 | |
| PREK_COLOR: always | |
| RUFF_OUTPUT_FORMAT: github | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [ | |
| "3.14", | |
| "3.13", | |
| "3.12", | |
| "3.11", | |
| "3.10", | |
| ] | |
| name: Lint Python ${{ matrix.python-version }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Lint | |
| run: uvx --with tox-uv tox -e lint | |
| - name: Mypy | |
| run: uvx --with tox-uv tox -e mypy | |
| success: | |
| permissions: | |
| contents: none | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| name: Lint Successful | |
| steps: | |
| - name: Success | |
| run: echo Test Successful |