mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-30 03:28:10 +00:00
fix(ci): use astral-sh/setup-uv and --no-workspace for service tests
Root pyproject.toml uses uv features (extra in sources, conflicts) that caused uv sync to fail in CI. Fix by: 1. Replace pip install uv==0.4.30 with astral-sh/setup-uv@v4 (latest) 2. Add --no-workspace flag so services don't inherit root config Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d98f50f64e
commit
66bac1aa5f
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
|
@ -88,13 +88,13 @@ jobs:
|
|||
python-version: '3.12'
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv==0.4.30
|
||||
uses: astral-sh/setup-uv@v4
|
||||
|
||||
- name: Sync deps
|
||||
run: uv sync
|
||||
run: uv sync --no-workspace
|
||||
|
||||
- name: Run pytest
|
||||
run: uv run pytest
|
||||
run: uv run --no-workspace pytest
|
||||
|
||||
test-chat-api:
|
||||
name: Chat-API — pytest (postgres service)
|
||||
|
|
@ -128,13 +128,13 @@ jobs:
|
|||
python-version: '3.12'
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv==0.4.30
|
||||
uses: astral-sh/setup-uv@v4
|
||||
|
||||
- name: Sync deps
|
||||
run: uv sync
|
||||
run: uv sync --no-workspace
|
||||
|
||||
- name: Run pytest
|
||||
run: uv run pytest
|
||||
run: uv run --no-workspace pytest
|
||||
|
||||
test-inference:
|
||||
name: Inference — pytest
|
||||
|
|
@ -152,13 +152,13 @@ jobs:
|
|||
python-version: '3.12'
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv==0.4.30
|
||||
uses: astral-sh/setup-uv@v4
|
||||
|
||||
- name: Sync deps
|
||||
run: uv sync
|
||||
run: uv sync --no-workspace
|
||||
|
||||
- name: Run pytest
|
||||
run: uv run pytest
|
||||
run: uv run --no-workspace pytest
|
||||
|
||||
terraform-validate:
|
||||
name: Terraform — validate
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user