Skip to content

Commit bfbc824

Browse files
authored
fix windows testing
1 parent 46d5841 commit bfbc824

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
run-tests:
3737
runs-on: ${{ matrix.os }}
3838
strategy:
39+
fail-fast: false
3940
matrix:
4041
stack-name: [local]
4142
os: [windows-latest, ubuntu-latest, macos-13]

tests/conftest.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515

1616
import os
17+
import sys
1718
import shutil
1819
from typing import Generator
1920

@@ -99,4 +100,10 @@ def clean_zenml_client(
99100

100101
# remove all traces, and change working directory back to base path
101102
os.chdir(orig_cwd)
102-
shutil.rmtree(str(tmp_path))
103+
if sys.platform == "win32":
104+
try:
105+
shutil.rmtree(str(tmp_path))
106+
except:
107+
pass
108+
else:
109+
shutil.rmtree(str(tmp_path))

0 commit comments

Comments
 (0)