chore(repo): initialize team collaboration repository
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
## 改动内容
|
||||
|
||||
-
|
||||
|
||||
## 原因与影响
|
||||
|
||||
-
|
||||
|
||||
## 验证
|
||||
|
||||
- [ ] `make test`
|
||||
- [ ] 相关演示或人工验收已完成
|
||||
- [ ] API、配置、数据结构或部署变化已同步文档
|
||||
|
||||
## 安全检查
|
||||
|
||||
- [ ] 未提交凭据、生产数据、数据库、日志或 Agent state
|
||||
- [ ] 未绕过安全门禁、事件写路径或状态转移约束
|
||||
- [ ] 危险动作仍保持默认拒绝
|
||||
|
||||
## 风险与回滚
|
||||
|
||||
- 风险:
|
||||
- 回滚:
|
||||
@@ -0,0 +1,42 @@
|
||||
# This workflow becomes active only after an isolated Gitea Actions runner is
|
||||
# deliberately registered. No runner is installed on the production server.
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
python-tests:
|
||||
name: Python ${{ matrix.python-version }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ["3.9", "3.12"]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: flashops
|
||||
env:
|
||||
PYTHONPATH: ${{ gitea.workspace }}/flashops/services/control-plane:${{ gitea.workspace }}/flashops/services/host-agent
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: pip
|
||||
cache-dependency-path: flashops/services/control-plane/requirements.txt
|
||||
|
||||
- name: Install dependencies
|
||||
run: python -m pip install -r services/control-plane/requirements.txt
|
||||
|
||||
- name: Run tests
|
||||
run: python -m pytest services/control-plane/tests services/host-agent/tests -q
|
||||
|
||||
- name: Compile Python modules
|
||||
run: python -m compileall -q services/control-plane/flashops_control services/host-agent/flashops_agent
|
||||
Reference in New Issue
Block a user