This commit is contained in:
Xi Yan 2025-01-13 17:48:51 -08:00
parent 1bf72b7f49
commit b75dfb0537

View file

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