We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d908f2 commit f1a038cCopy full SHA for f1a038c
1 file changed
test-wheel.bash
@@ -116,10 +116,21 @@ cleanup_background_jobs() {
116
}
117
118
cleanup_virtualenv() {
119
- if [[ "$cleanup" == "true" ]]; then
120
- echo "→ Removing $venv"
121
- rm -rf "$venv"
+ if [[ "$cleanup" != "true" ]]; then
+ return 0
+ fi
122
+
123
+ if [[ "$is_windows_shell" == true ]]; then
124
+ # GitHub's Windows runners clean the workspace after each job anyway.
125
+ # Avoid synchronously deleting the temporary venv here: Git-Bash/MSYS can
126
+ # spend minutes tearing down a Python tree after the background services
127
+ # were killed, which turns integration tests into apparent hangs.
128
+ echo "→ Skipping synchronous removal of $venv on Windows"
129
130
fi
131
132
+ echo "→ Removing $venv"
133
+ rm -rf "$venv"
134
135
136
on_exit() {
0 commit comments