Skip to content

Commit 15362ed

Browse files
authored
add retry for check installation (#9)
1 parent 1d886d6 commit 15362ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
python-version: ${{ matrix.python-version }}
9696
- name: Run check
9797
run: |
98-
python -m pip install flake8 ${{ needs.constants.outputs.package_name }}==${{ needs.constants.outputs.package_version }} --extra-index-url https://test.pypi.org/simple/
98+
for i in 1 2 3 4 5; do python -m pip install flake8 ${{ needs.constants.outputs.package_name }}==${{ needs.constants.outputs.package_version }} --extra-index-url https://test.pypi.org/simple/ && break || sleep 10; done
9999
echo '"""Docstring."""' > test_.py
100100
flake8 test_.py
101101
release-pypi:
@@ -161,6 +161,6 @@ jobs:
161161
python-version: ${{ matrix.python-version }}
162162
- name: Run check
163163
run: |
164-
python -m pip install flake8 ${{ needs.constants.outputs.package_name }}==${{ needs.constants.outputs.package_version }}
164+
for i in 1 2 3 4 5; do python -m pip install flake8 ${{ needs.constants.outputs.package_name }}==${{ needs.constants.outputs.package_version }} && break || sleep 10; done
165165
echo '"""Docstring."""' > test_.py
166166
flake8 test_.py

0 commit comments

Comments
 (0)