Skip to content

Commit

Permalink
Adds second wait time if TestPyPI install fails
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaroberts committed Mar 1, 2024
1 parent 975800a commit 94e6c81
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish_testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,28 @@ jobs:
time: '150' # seconds

- name: Install latest TestPyPI version in fresh venv
id: attempt1
run: |
NII2DCM_VERSION=`echo "$(nii2dcm -v)"`
echo $NII2DCM_VERSION
python -m venv nii2dcm-temp
source nii2dcm-temp/bin/activate
pip install --upgrade pip
pip install setuptools wheel
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ nii2dcm==$NII2DCM_VERSION
nii2dcm -h
echo "nii2dcm version:"
nii2dcm -v
continue-on-error: true

- name: Wait longer
if: steps.attempt1.outcome != 'success'
uses: GuillaumeFalourd/wait-sleep-action@v1
with:
time: '150' # seconds

- name: Re-attempt TestPyPI install
if: steps.attempt1.outcome != 'success'
run: |
NII2DCM_VERSION=`echo "$(nii2dcm -v)"`
echo $NII2DCM_VERSION
Expand Down

0 comments on commit 94e6c81

Please sign in to comment.