Skip to content

Commit

Permalink
fix windows testing
Browse files Browse the repository at this point in the history
  • Loading branch information
avishniakov authored Jul 19, 2024
1 parent 46d5841 commit bfbc824
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
run-tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
stack-name: [local]
os: [windows-latest, ubuntu-latest, macos-13]
Expand Down
9 changes: 8 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


import os
import sys
import shutil
from typing import Generator

Expand Down Expand Up @@ -99,4 +100,10 @@ def clean_zenml_client(

# remove all traces, and change working directory back to base path
os.chdir(orig_cwd)
shutil.rmtree(str(tmp_path))
if sys.platform == "win32":
try:
shutil.rmtree(str(tmp_path))
except:
pass
else:
shutil.rmtree(str(tmp_path))

0 comments on commit bfbc824

Please sign in to comment.