Bump ruff from 0.12.11 to 0.12.12 (#27) #50
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: build | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: [ "**/*.py", "pyproject.toml", "uv.lock", ".github/workflows/**"] | |
| pull_request: | |
| branches: [ main ] | |
| paths: [ "**/*.py", "pyproject.toml", "uv.lock", ".github/workflows/**"] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: | |
| - '3.8' | |
| - '3.9' | |
| - '3.10' | |
| - '3.11' | |
| - '3.12' | |
| - '3.13' | |
| fail-fast: false | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up uv with Python ${{ matrix.python-version }} | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| # Cache key will include uv.lock hash automatically | |
| - name: Install dependencies | |
| run: | | |
| uv sync --locked --all-extras --all-groups | |
| - name: Check Docker version | |
| run: docker --version | |
| - name: Run tests | |
| run: | | |
| uv run pytest tests --maxfail=1 --disable-warnings --tb=short -v | |
| # Prune cache to optimize storage | |
| - name: Minimize uv cache | |
| run: uv cache prune --ci | |
| if: always() | |
| # Check if uv.lock is up to date | |
| check-lockfile: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Check if uv.lock is up to date | |
| run: | | |
| uv sync --locked --all-extras --all-groups --dry-run |