Skip to content

Commit b245d21

Browse files
committed
fix: 解决Poetry包安装问题
主要修复: - 在pyproject.toml中设置package-mode = false - 在所有CI工作流中添加--no-root选项 - 重新生成poetry.lock文件 - 本地验证导入功能正常 这修复了'No file/folder found for package pytest-framework'错误
1 parent 90d0794 commit b245d21

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Install dependencies
2929
run: |
30-
poetry install --no-interaction
30+
poetry install --no-interaction --no-root
3131
3232
- name: Run simple test
3333
run: |

‎.github/workflows/debug.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: "📦 Step 8: Install Dependencies (Verbose)"
8383
run: |
8484
echo "=== Installing Dependencies with Verbose Output ==="
85-
poetry install --no-interaction -vvv
85+
poetry install --no-interaction --no-root -vvv
8686
8787
- name: "✅ Step 9: Test Basic Imports"
8888
run: |

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description = "现代化接口测试自动化框架 - 功能强大、易于扩
55
authors = ["ljxpython <1030470148@qq.com>"]
66
license = "MIT"
77
readme = "README.md"
8+
package-mode = false
89

910
[tool.poetry.dependencies]
1011
python = "^3.12"

0 commit comments

Comments
 (0)