fix: use test.pypi for uv sync on release branches

The previous approach tried to install before uv sync, but there's no
venv yet. The correct solution:

- Release branches: Point UV_INDEX_URL to test.pypi so uv sync can
  resolve RC versions, then install exact git version after sync
- Non-release branches: Run uv sync normally, then install git version
  if client-version=latest

This lets uv sync create the venv first, then we install/override the
client version as needed.
This commit is contained in:
Ashwin Bharambe 2025-10-30 23:11:14 -07:00
parent 626639beee
commit 0815663211
3 changed files with 60 additions and 26 deletions

View file

@ -130,11 +130,22 @@ jobs:
exit 1
fi
- name: Install llama-stack-client
- name: Configure client installation
id: client-config
uses: ./.github/actions/install-llama-stack-client
- name: Sync dev + type_checking dependencies
run: uv sync --group dev --group type_checking
env:
UV_INDEX_URL: ${{ steps.client-config.outputs.uv-index-url }}
UV_EXTRA_INDEX_URL: ${{ steps.client-config.outputs.uv-extra-index-url }}
run: |
uv sync --group dev --group type_checking
# Install specific client version after sync if needed
if [ "${{ steps.client-config.outputs.install-after-sync }}" = "true" ]; then
echo "Installing llama-stack-client from: ${{ steps.client-config.outputs.install-source }}"
uv pip install ${{ steps.client-config.outputs.install-source }}
fi
- name: Run mypy (full type_checking)
run: |