mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 17:29:01 +00:00
retry download
This commit is contained in:
parent
78727aad26
commit
b176bc6e6a
1 changed files with 15 additions and 2 deletions
17
.github/workflows/publish-to-test-pypi.yml
vendored
17
.github/workflows/publish-to-test-pypi.yml
vendored
|
@ -202,8 +202,21 @@ jobs:
|
|||
steps:
|
||||
- name: Install the package
|
||||
run: |
|
||||
sleep 10
|
||||
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 }}
|
||||
max_attempts=6
|
||||
attempt=1
|
||||
while [ $attempt -le $max_attempts ]; do
|
||||
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
|
||||
echo "Package installed successfully"
|
||||
break
|
||||
fi
|
||||
if [ $attempt -eq $max_attempts ]; then
|
||||
echo "Failed to install package after $max_attempts attempts"
|
||||
exit 1
|
||||
fi
|
||||
attempt=$((attempt + 1))
|
||||
sleep 10
|
||||
done
|
||||
- name: Test the package versions
|
||||
run: |
|
||||
pip list | grep llama_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue