Skip to content

Commit 41423e2

Browse files
author
liangyz
committed
chore: update CI workflow to include environment variables for testing
- Add environment variables for Lark app configuration in the CI workflow. - Enhance command availability check for lark-agent after installation. - Ensure successful module import verification with updated testing steps.
1 parent ec82b0e commit 41423e2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,22 @@ jobs:
7777
unzip -p dist/*.whl */dist-info/entry_points.txt || true
7878
7979
- name: Test installation
80+
env:
81+
LARK_APP_ID: test_app_id
82+
LARK_APP_SECRET: test_app_secret
83+
FEISHU_PROJECT_USER_TOKEN: test_token
84+
FEISHU_PROJECT_USER_KEY: test_user_key
8085
run: |
8186
# 测试 wheel 包是否可以正常安装
8287
uv tool install dist/*.whl --force
83-
# 验证命令是否可用
84-
which lark-agent || echo "lark-agent command not found in PATH"
85-
# 验证模块是否可以导入
88+
# 验证命令是否可用(uv tool install 会将命令安装到 ~/.local/bin)
89+
export PATH="$HOME/.local/bin:$PATH"
90+
if command -v lark-agent &> /dev/null; then
91+
echo "✓ lark-agent command found: $(which lark-agent)"
92+
else
93+
echo "⚠ lark-agent command not found in PATH, but installation succeeded"
94+
fi
95+
# 验证模块是否可以导入(需要环境变量)
8696
python -c "from src.mcp_server import main, mcp; print('✓ Module import successful')"
8797
8898
- name: Upload build artifacts

0 commit comments

Comments
 (0)