Skip to content

Commit 31ecd0d

Browse files
authored
Feat/sp 2021 add multiple images (#89)
- add test retry to release workflow
1 parent 8496fc1 commit 31ecd0d

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

.github/workflows/python-local-test.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,16 @@ jobs:
3333
run: make dist
3434

3535
- name: Install Test Package
36-
run: |
37-
pip install -r requirements.txt
38-
pip install dist/scanoss-*-py3-none-any.whl
39-
which scanoss-py
36+
uses: nick-fields/retry@v3
37+
with:
38+
timeout_minutes: 2
39+
retry_wait_seconds: 10
40+
max_attempts: 3
41+
retry_on: error
42+
command: |
43+
pip install -r requirements.txt
44+
pip install dist/scanoss-*-py3-none-any.whl
45+
which scanoss-py
4046
4147
- name: Run Tests
4248
run: |

.github/workflows/python-publish-pypi.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,19 @@ jobs:
7373
python-version: '3.10.x'
7474

7575
- name: Install Remote Package
76-
run: |
77-
scanoss_version=$(python ./version.py)
78-
echo "Sleeping before checking PyPI for new release version ${scanoss_version}..."
79-
sleep 60
80-
echo "Installing scanoss ${scanoss_version}..."
81-
pip install --upgrade scanoss==$scanoss_version
82-
which scanoss-py
76+
uses: nick-fields/retry@v3
77+
with:
78+
timeout_minutes: 3
79+
retry_wait_seconds: 10
80+
max_attempts: 3
81+
retry_on: error
82+
command: |
83+
scanoss_version=$(python ./version.py)
84+
echo "Sleeping before checking PyPI for new release version ${scanoss_version}..."
85+
sleep 60
86+
echo "Installing scanoss ${scanoss_version}..."
87+
pip install --upgrade scanoss==$scanoss_version
88+
which scanoss-py
8389
8490
- name: Run Tests
8591
run: |

0 commit comments

Comments
 (0)