-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from karlosss/fix-test-pypi-deploy-3
fix test pypi deploy
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |