Skip to content

Commit 84d9d70

Browse files
committed
fix CI error
1 parent 202fc96 commit 84d9d70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test_qlib_from_source_slow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# so we limit the macos version to macos-13.
2222
os: [windows-latest, ubuntu-20.04, ubuntu-22.04, macos-13]
2323
# not supporting 3.6 due to annotations is not supported https://stackoverflow.com/a/52890129
24-
python-version: [3.7, 3.8]
24+
python-version: ["3.8", "3.10"]
2525

2626
steps:
2727
- name: Test qlib from source slow

qlib/workflow/recorder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,10 @@ def get_local_dir(self):
317317
This function will return the directory path of this recorder.
318318
"""
319319
if self.artifact_uri is not None:
320-
if platform.system() == "Linux":
321-
local_dir_path = Path(self.artifact_uri.lstrip("file:")).parent
322-
else:
320+
if platform.system() == "Windows":
323321
local_dir_path = Path(self.artifact_uri.lstrip("file:").lstrip("/")).parent
322+
else:
323+
local_dir_path = Path(self.artifact_uri.lstrip("file:")).parent
324324
local_dir_path = str(local_dir_path.resolve())
325325
if os.path.isdir(local_dir_path):
326326
return local_dir_path

0 commit comments

Comments
 (0)