Skip to content

Commit

Permalink
fix test pypi deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
karlosss committed Oct 20, 2024
1 parent 7373848 commit 6cabef8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/push_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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

0 comments on commit 6cabef8

Please sign in to comment.