Fix CI failure: replace pre-commit with direct ruff commands #9
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: CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| os: [ubuntu-latest] | |
| include: | |
| - python-version: "3.12" | |
| os: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv and set Python version | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --locked --all-extras --dev | |
| - name: Run linter and static analysis | |
| run: uv run pre-commit run --all-files | |
| - name: Run tests | |
| run: uv run pytest |