mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 18:22:41 +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:
|
steps:
|
||||||
- name: Install the package
|
- name: Install the package
|
||||||
run: |
|
run: |
|
||||||
sleep 10
|
max_attempts=6
|
||||||
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 }}
|
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
|
- name: Test the package versions
|
||||||
run: |
|
run: |
|
||||||
pip list | grep llama_
|
pip list | grep llama_
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue