mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-19 11:35:36 +00:00
Retry on Rocky Linux Python install (#16190)
I'm not sure why these mirrors have been flaky lately.
e.g.
5225634838
This commit is contained in:
parent
3c30e11a4d
commit
a681fe9976
1 changed files with 14 additions and 2 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
|
@ -2201,12 +2201,24 @@ jobs:
|
|||
- name: "Install Python"
|
||||
if: matrix.rocky-version == '8'
|
||||
run: |
|
||||
dnf install python39 python39-pip which -y
|
||||
for i in {1..5}; do
|
||||
dnf install python39 python39-pip which -y && break || { echo "Attempt $i failed, retrying in 10 seconds..."; sleep 10; }
|
||||
if [ $i -eq 5 ]; then
|
||||
echo "Failed to install Python after 5 attempts"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
- name: "Install Python"
|
||||
if: matrix.rocky-version == '9'
|
||||
run: |
|
||||
dnf install python3.9 python3.9-pip which -y
|
||||
for i in {1..5}; do
|
||||
dnf install python3.9 python3.9-pip which -y && break || { echo "Attempt $i failed, retrying in 10 seconds..."; sleep 10; }
|
||||
if [ $i -eq 5 ]; then
|
||||
echo "Failed to install Python after 5 attempts"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
- name: "Install Python"
|
||||
if: matrix.rocky-version == '10'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue