607 maintenance integrate uv to dockerfile and GitHub workflow #1039
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: tests | |
| on: [push, pull_request] | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.12" | |
| enable-cache: false | |
| activate-environment: true | |
| - name: Install dependencies | |
| run: cp uv.lock.cpu uv.lock && uv sync --frozen --extra dev --extra cpu | |
| - name: Lint | |
| run: uv run ruff check . && uv run ruff format --check . | |
| - name: Inspect lockfile for CUDA | |
| run: grep -E "cu12|nvidia|cudart|cublas" uv.lock || echo "No CUDA entries" | |
| - name: Run tests | |
| run: uv run --frozen pytest tests/ |