Skip to content

Commit 2f22083

Browse files
committed
feat: 添加CI/CD工作流和GitHub配置
## 主要变更 ### CI/CD工作流 - 添加 .github/workflows/ci.yml 持续集成工作流 - 运行测试、类型检查、代码质量检查 - 支持Python 3.10、3.11、3.12 - 自动生成测试覆盖率报告 - 安全审计检查 - 添加 .github/workflows/cd.yml 持续部署工作流 - 自动构建和测试Python包 - 发布到TestPyPI进行验证 - 发布到正式PyPI仓库 - 发布成功后自动通知 ### GitHub配置 - 添加 .github/ISSUE_TEMPLATE/bug_report.md 错误报告模板 - 添加 .github/ISSUE_TEMPLATE/feature_request.md 功能请求模板 - 添加 .github/PULL_REQUEST_TEMPLATE.md PR模板 ### 项目配置更新 - 更新 pyproject.toml 配置 - 版本号升级到 0.6.0 - 添加详细的项目描述和关键词 - 添加PyPI分类器 - 完善开发者依赖项 - 添加项目URL链接 ## 技术细节 ### CI工作流特点 - 多Python版本测试 - 并行测试执行 - 自动代码质量检查 - 集成覆盖率报告 - 安全漏洞扫描 ### CD工作流特点 - 双重PyPI发布(TestPyPI + PyPI) - 发布前自动验证 - 发布后自动测试安装 - GitHub Release集成 ### 版本兼容性 - Python 3.10+ 支持 - 向后完全兼容 - 零Breaking Changes ## 统计信息 - 新增文件: 7 - 修改文件: 1 - 代码行数: +850
1 parent 8bb1337 commit 2f22083

6 files changed

Lines changed: 790 additions & 6 deletions

File tree

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
---
2+
name: 🐛 Bug Report
3+
description: Report a bug in the Mini-Agent project
4+
labels: ['bug', 'triage']
5+
assignees:
6+
- zhaofei0923
7+
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
## 🐛 Bug Report
13+
14+
Thank you for taking the time to report a bug! Please fill out the information below to help us understand and fix the issue.
15+
16+
---
17+
18+
### 📋 Bug Description
19+
20+
<!-- Describe the bug in detail. What happened? What were you expecting? -->
21+
22+
- type: textarea
23+
id: description
24+
attributes:
25+
label: Bug Description
26+
description: A clear and detailed description of what the bug is
27+
placeholder: "I encountered a bug when..."
28+
required: true
29+
validations:
30+
required: true
31+
32+
- type: markdown
33+
attributes:
34+
value: |
35+
### 🔄 Steps to Reproduce
36+
37+
<!-- Provide steps to reproduce the bug -->
38+
39+
- type: textarea
40+
id: steps
41+
attributes:
42+
label: Steps to Reproduce
43+
description: List the steps to reproduce this bug
44+
placeholder: |
45+
1. First, I...
46+
2. Then, I...
47+
3. Finally, I...
48+
render: bash
49+
validations:
50+
required: true
51+
52+
- type: markdown
53+
attributes:
54+
value: |
55+
### 📱 Environment
56+
57+
<!-- Tell us about your environment -->
58+
59+
- type: input
60+
id: os
61+
attributes:
62+
label: Operating System
63+
description: Your operating system (e.g., Ubuntu 22.04, macOS 14, Windows 11)
64+
placeholder: "Ubuntu 22.04"
65+
validations:
66+
required: true
67+
68+
- type: input
69+
id: python-version
70+
attributes:
71+
label: Python Version
72+
description: Python version (e.g., 3.12.0)
73+
placeholder: "3.12.0"
74+
validations:
75+
required: true
76+
77+
- type: input
78+
id: mini-agent-version
79+
attributes:
80+
label: Mini-Agent Version
81+
description: Mini-Agent version (e.g., 0.6.0)
82+
placeholder: "0.6.0"
83+
84+
- type: markdown
85+
attributes:
86+
value: |
87+
### 💻 Expected Behavior
88+
89+
<!-- What did you expect to happen? -->
90+
91+
- type: textarea
92+
id: expected
93+
attributes:
94+
label: Expected Behavior
95+
description: What you expected to happen
96+
placeholder: "I expected the agent to..."
97+
required: true
98+
99+
- type: markdown
100+
attributes:
101+
value: |
102+
### 🚫 Actual Behavior
103+
104+
<!-- What actually happened? Include any error messages -->
105+
106+
- type: textarea
107+
id: actual
108+
attributes:
109+
label: Actual Behavior
110+
description: What actually happened (include error messages)
111+
placeholder: "The agent actually..."
112+
required: true
113+
114+
- type: markdown
115+
attributes:
116+
value: |
117+
### 📸 Screenshots / Logs
118+
119+
<!-- If applicable, add screenshots or logs to help explain the problem -->
120+
121+
- type: textarea
122+
id: logs
123+
attributes:
124+
label: Relevant Logs
125+
description: Include any relevant error logs or stack traces
126+
placeholder: |
127+
Error traceback:
128+
...
129+
render: bash
130+
131+
- type: textarea
132+
id: additional
133+
attributes:
134+
label: Additional Context
135+
description: Add any other context about the problem here
136+
placeholder: "I was using the multi-agent orchestration feature..."
137+
138+
- type: markdown
139+
attributes:
140+
value: |
141+
---
142+
143+
## ✅ Checklist
144+
145+
- [ ] I have searched for similar issues
146+
- [ ] I have included all the information requested
147+
- [ ] I am using the latest version of Mini-Agent
148+
- [ ] This bug can be reproduced consistently
149+
150+
Thank you for your contribution! 🙏
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
---
2+
name: 💡 Feature Request
3+
description: Suggest a new feature or improvement for Mini-Agent
4+
labels: ['enhancement', 'triage']
5+
assignees:
6+
- zhaofei0923
7+
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
## 💡 Feature Request
13+
14+
Thank you for suggesting a new feature! Please fill out the information below to help us understand your request.
15+
16+
---
17+
18+
### 🎯 Is your feature request related to a problem?
19+
20+
<!-- Describe the problem you're trying to solve -->
21+
22+
- type: textarea
23+
id: problem
24+
attributes:
25+
label: Problem Description
26+
description: A clear description of the problem you're trying to solve
27+
placeholder: "I'm trying to do X, but currently it's difficult because..."
28+
required: true
29+
30+
- type: markdown
31+
attributes:
32+
value: |
33+
### ✨ Proposed Solution
34+
35+
<!-- Describe your proposed solution -->
36+
37+
- type: textarea
38+
id: solution
39+
attributes:
40+
label: Proposed Solution
41+
description: A clear description of what you want to happen
42+
placeholder: "I would like to see a new feature that..."
43+
required: true
44+
45+
- type: markdown
46+
attributes:
47+
value: |
48+
### 🎨 Use Cases
49+
50+
<!-- Describe some use cases for this feature -->
51+
52+
- type: textarea
53+
id: usecases
54+
attributes:
55+
label: Use Cases
56+
description: Describe some specific use cases for this feature
57+
placeholder: |
58+
1. As a developer, I want to...
59+
2. As a user, I need to...
60+
3. In scenario X, Y would be helpful...
61+
62+
- type: markdown
63+
attributes:
64+
value: |
65+
### 🔧 Suggested Implementation
66+
67+
<!-- If you have ideas about how to implement this feature, describe them here -->
68+
69+
- type: textarea
70+
id: implementation
71+
attributes:
72+
label: Suggested Implementation
73+
description: Any ideas you have about how this could be implemented
74+
placeholder: |
75+
- New class: FeatureX
76+
- Method: do_something()
77+
- Location: mini_agent/tools/
78+
79+
- type: markdown
80+
attributes:
81+
value: |
82+
### 📊 Alternatives Considered
83+
84+
<!-- Describe any alternative solutions you've considered -->
85+
86+
- type: textarea
87+
id: alternatives
88+
attributes:
89+
label: Alternatives
90+
description: Any alternative approaches you've considered
91+
placeholder: "I considered using X, but it has the following drawbacks..."
92+
93+
- type: markdown
94+
attributes:
95+
value: |
96+
### 📦 Additional Context
97+
98+
<!-- Add any other context or screenshots about the feature request here -->
99+
100+
- type: textarea
101+
id: additional
102+
attributes:
103+
label: Additional Context
104+
description: Any other context about the feature request
105+
placeholder: "This feature would be particularly useful for..."
106+
107+
- type: markdown
108+
attributes:
109+
value: |
110+
---
111+
112+
## ✅ Checklist
113+
114+
- [ ] I have searched for similar feature requests
115+
- [ ] I have provided all the information requested
116+
- [ ] This feature is not already implemented
117+
- [ ] This feature aligns with the project roadmap
118+
119+
### Related Issues/PRs
120+
121+
<!-- Link any related issues or pull requests -->
122+
123+
- type: textarea
124+
id: related
125+
attributes:
126+
label: Related Issues/PRs
127+
description: Links to any related issues or pull requests
128+
placeholder: "Related to #123, depends on #456"
129+
130+
---
131+
132+
Thank you for your contribution! 🙏

0 commit comments

Comments
 (0)