diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index af79e22..b8f88cf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -88,9 +88,13 @@ jobs: # Install the package from TestPyPI with regular PyPI as PRIMARY for dependencies # This ensures dependencies like fastapi come from real PyPI, not broken TestPyPI versions - pip install --index-url https://pypi.org/simple/ \ - --extra-index-url https://test.pypi.org/simple/ \ - gradient-adk==$VERSION + for i in {1..5}; do + pip install --no-cache-dir \ + --index-url https://pypi.org/simple/ \ + --extra-index-url https://test.pypi.org/simple/ \ + gradient-adk==$VERSION && break + sleep 2 + done # Verify the installed version pip show gradient-adk @@ -119,4 +123,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: python-package-distributions - path: dist/ \ No newline at end of file + path: dist/