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:
Manmohan Sharma 2026-04-16 12:35:41 -07:00
parent d98f50f64e
commit 66bac1aa5f
No known key found for this signature in database

View File

@ -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