Skip to content

Commit 7e78679

Browse files
committed
fix ci bug
1 parent 7716866 commit 7e78679

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/pooling/test_embedding.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
import paddle
2020
import pytest
2121

22+
current_dir = os.path.dirname(os.path.abspath(__file__))
23+
project_root = os.path.abspath(os.path.join(current_dir, ".."))
24+
if project_root not in sys.path:
25+
sys.path.insert(0, project_root)
26+
2227
from fastdeploy.config import (
2328
CacheConfig,
2429
FDConfig,

0 commit comments

Comments
 (0)