Skip to content

Commit d4fc384

Browse files
committed
Reduce retry attempts for PyPI package download from 90 to 5
1 parent 9eb3671 commit d4fc384

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
VERSION=$(python -c "import versioneer; print(versioneer.get_version())")
5151
VERSION=${VERSION#v}
5252
echo "Looking for package: ${PACKAGE_NAME}==${VERSION}"
53-
for i in {1..90}; do
54-
echo "Attempt $i/90: Trying to download wheel and sdist..."
53+
for i in {1..5}; do
54+
echo "Attempt $i/5: Trying to download wheel and sdist..."
5555
rm -rf /tmp/pypi_check_download && mkdir -p /tmp/pypi_check_download
5656
pip download --no-deps --dest /tmp/pypi_check_download ${PACKAGE_NAME}==${VERSION} >/dev/null 2>&1
5757
WHEEL=$(ls /tmp/pypi_check_download/*.whl 2>/dev/null | head -1)
@@ -60,7 +60,7 @@ jobs:
6060
echo "✅ Both wheel and sdist for ${PACKAGE_NAME}==${VERSION} are downloadable!"
6161
break
6262
fi
63-
if [ $i -eq 90 ]; then
63+
if [ $i -eq 5 ]; then
6464
echo "❌ Could not download both wheel and sdist after 15 minutes"
6565
echo "Available files:"
6666
ls -l /tmp/pypi_check_download || echo "No files downloaded"

0 commit comments

Comments
 (0)