Skip to content

607 maintenance integrate uv to dockerfile and GitHub workflow #1038

607 maintenance integrate uv to dockerfile and GitHub workflow

607 maintenance integrate uv to dockerfile and GitHub workflow #1038

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/