mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
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:
parent
626639beee
commit
0815663211
3 changed files with 60 additions and 26 deletions
15
.github/workflows/pre-commit.yml
vendored
15
.github/workflows/pre-commit.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue