mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-12 04:00:42 +00:00
fix: set UV_INDEX_URL before running pre-commit
The uv-lock pre-commit hook runs 'uv lock' which needs UV_INDEX_URL set to resolve RC dependencies on release branches. Configure the client before running pre-commit so the env vars are available.
This commit is contained in:
parent
34471d87c1
commit
b8892de5d6
1 changed files with 6 additions and 0 deletions
6
.github/workflows/pre-commit.yml
vendored
6
.github/workflows/pre-commit.yml
vendored
|
|
@ -49,11 +49,17 @@ jobs:
|
|||
run: npm ci
|
||||
working-directory: llama_stack/ui
|
||||
|
||||
- name: Configure client installation
|
||||
id: client-config-precommit
|
||||
uses: ./.github/actions/install-llama-stack-client
|
||||
|
||||
- name: Run pre-commit
|
||||
id: precommit
|
||||
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
|
||||
continue-on-error: true
|
||||
env:
|
||||
UV_INDEX_URL: ${{ steps.client-config-precommit.outputs.uv-index-url }}
|
||||
UV_EXTRA_INDEX_URL: ${{ steps.client-config-precommit.outputs.uv-extra-index-url }}
|
||||
SKIP: no-commit-to-branch
|
||||
RUFF_OUTPUT_FORMAT: github
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue