diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 300b219..2f91015 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,24 +29,13 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@v7 - # Linux: Request 'cpu' extra to force the pytorch-cpu index (prevents libcublas crash) - name: Install dependencies (Linux) - if: runner.os == 'Linux' run: | uv sync --extra cpu - uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu - - # macOS: Standard sync - - name: Install dependencies (macOS) - if: runner.os == 'macOS' - run: uv sync - - name: Add nanochat to PYTHONPATH (Unix) run: | echo "PYTHONPATH=$(pwd):$PYTHONPATH" >> $GITHUB_ENV - - name: Run pytest run: | uv run --extra cpu pytest tests/ -v -