mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-06 02:32:40 +00:00
test
This commit is contained in:
parent
1bf72b7f49
commit
b75dfb0537
1 changed files with 11 additions and 10 deletions
21
.github/workflows/publish-to-test-pypi.yml
vendored
21
.github/workflows/publish-to-test-pypi.yml
vendored
|
@ -1,14 +1,15 @@
|
||||||
name: Publish Python 🐍 distribution 📦 to TestPyPI
|
name: Publish Python 🐍 distribution 📦 to TestPyPI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Keep manual trigger
|
push
|
||||||
inputs:
|
# workflow_dispatch: # Keep manual trigger
|
||||||
version:
|
# inputs:
|
||||||
description: 'Version number (e.g. 0.0.63.dev20250111)'
|
# version:
|
||||||
required: true
|
# description: 'Version number (e.g. 0.0.63.dev20250111)'
|
||||||
type: string
|
# required: true
|
||||||
schedule:
|
# type: string
|
||||||
- cron: "0 0 * * *" # Run every day at midnight
|
# schedule:
|
||||||
|
# - cron: "0 0 * * *" # Run every day at midnight
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger-client-and-models-build:
|
trigger-client-and-models-build:
|
||||||
|
@ -206,11 +207,11 @@ jobs:
|
||||||
attempt=1
|
attempt=1
|
||||||
while [ $attempt -le $max_attempts ]; do
|
while [ $attempt -le $max_attempts ]; do
|
||||||
echo "Attempt $attempt of $max_attempts to install package..."
|
echo "Attempt $attempt of $max_attempts to install package..."
|
||||||
if pip install --index-url https://pypi.org/simple/ --extra-index-url https://test.pypi.org/simple/ llama-stack==${{ needs.trigger-client-and-models-build.outputs.version }}; then
|
if pip install --no-cache --index-url https://pypi.org/simple/ --extra-index-url https://test.pypi.org/simple/ llama-stack==${{ needs.trigger-client-and-models-build.outputs.version }}; then
|
||||||
echo "Package installed successfully"
|
echo "Package installed successfully"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
if [ $attempt -eq $max_attempts ]; then
|
if [ $attempt -ge $max_attempts ]; then
|
||||||
echo "Failed to install package after $max_attempts attempts"
|
echo "Failed to install package after $max_attempts attempts"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue