From 6cabef809a341d73d9cecad877da9fee4b99f612 Mon Sep 17 00:00:00 2001 From: Karel Jilek Date: Sun, 20 Oct 2024 14:37:43 +0200 Subject: [PATCH] fix test pypi deploy --- .github/workflows/push_master.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push_master.yml b/.github/workflows/push_master.yml index 60b1cb5..4c57388 100644 --- a/.github/workflows/push_master.yml +++ b/.github/workflows/push_master.yml @@ -132,11 +132,13 @@ jobs: name: VERSION path: . - - name: Wait for 30 seconds for the package to become available - run: sleep 30 - + # retry up to 10 times in case the package is not available yet - name: Install the package - run: pip install --extra-index-url https://test.pypi.org/simple/ --no-cache-dir swisspair[test]=="$(cat VERSION)" + uses: nick-fields/retry@v3.0.0 + with: + retry_wait_seconds: 10 + max_attempts: 10 + command: pip install --extra-index-url https://test.pypi.org/simple/ --no-cache-dir swisspair[test]=="$(cat VERSION)" - name: Run tests run: pytest