ci: Fix publish CI #4873
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] | |
| env: | |
| UV_SYSTEM_PYTHON: 1 | |
| jobs: | |
| linting: | |
| name: Python Code Quality and Lint | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: ["3.12"] | |
| os: [ubuntu-latest, windows-latest] | |
| linter-env: ["linting", "type_check", "dev"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| # Install a specific version of uv. | |
| version: "0.11.28" | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv pip install tox tox-uv | |
| - name: Run ${{ matrix.linter-env }} | |
| run: | | |
| uv run tox -e ${{ matrix.linter-env }} |