Skip to content

Commit 0b82dc6

Browse files
committed
Try killing pip after a timeout and rerunning it
1 parent bf54c2f commit 0b82dc6

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/cygwin-test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,16 @@ jobs:
6060
# This is used unless, and before, an updated pip is installed.
6161
ln -s pip3 /usr/bin/pip
6262
63-
- name: Install code coverage dependencies
64-
run: |
65-
pip install "coverage[toml]"
66-
6763
- name: Install project and test dependencies
6864
run: |
69-
pip install ".[test]"
65+
set +e
66+
for t in {1..5}; do
67+
echo "Starting try $t."
68+
timeout 70s pip install ".[test]"
69+
status="$?"
70+
((status == 124)) || break
71+
done
72+
exit "$status"
7073
7174
- name: Show version and platform information
7275
run: |

0 commit comments

Comments
 (0)