Skip to content

new version

new version #140

Workflow file for this run

name: Run Test
env:
UV_SYSTEM_PYTHON: 1
# Force CPU-only PyTorch in CI to avoid downloading ~2 GB of NVIDIA/CUDA packages
UV_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu
UV_INDEX_STRATEGY: unsafe-best-match
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
uv-test:
name: python
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install the project
run: make install
- name: Format with black
run: uv run black .
- name: Commit formatted code
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'style: auto-format with black'
file_pattern: '*.py'
- name: Run tests
run: make test