Skip to content

Commit 0b0fdff

Browse files
committed
fix: 修复 CI 测试导入问题
- 移除 pyproject.toml 中的 pythonpath 配置 - 使用非 editable 安装方式避免模块导入问题
1 parent 1eac98a commit 0b0fdff

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install dependencies
3535
run: |
3636
python -m pip install --upgrade pip
37-
pip install -e .[dev]
37+
pip install .[dev]
3838
3939
- name: Lint with Ruff
4040
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
23-
pip install -e .[dev]
23+
pip install .[dev]
2424
- name: Run tests
2525
run: pytest
2626

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ select = ["E", "F", "I", "ARG"]
4545
"mcp_documents_reader.py" = ["ARG001"]
4646

4747
[tool.pytest.ini_options]
48-
pythonpath = "."
4948
testpaths = ["tests"]
5049
addopts = "-v --cov=mcp_documents_reader --cov-report=term-missing --cov-fail-under=90"
5150
asyncio_mode = "auto"

0 commit comments

Comments
 (0)