Skip to content

Commit 0f39ff3

Browse files
committed
Initial commit: Self-Optimizing Holo Evolution v1.1.0
1 parent d656d83 commit 0f39ff3

18 files changed

Lines changed: 3906 additions & 36 deletions

.dockerignore

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Git
2+
.git
3+
.gitignore
4+
5+
# Python
6+
__pycache__
7+
*.py[cod]
8+
*$py.class
9+
*.so
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# Virtual Environment
28+
venv/
29+
env/
30+
ENV/
31+
.venv
32+
33+
# IDE
34+
.vscode/
35+
.idea/
36+
*.swp
37+
*.swo
38+
*~
39+
40+
# OS
41+
.DS_Store
42+
Thumbs.db
43+
44+
# Data (持久化数据不应打包到镜像)
45+
data/
46+
*.db
47+
*.sqlite
48+
*.sqlite3
49+
50+
# Logs
51+
logs/
52+
*.log
53+
54+
# Environment variables
55+
.env
56+
.env.local
57+
58+
# Test coverage
59+
.coverage
60+
htmlcov/
61+
.pytest_cache/
62+
*.cover
63+
64+
# Documentation
65+
docs/
66+
*.md
67+
!README.md
68+
69+
# Temporary files
70+
tmp/
71+
temp/
72+
*.tmp
73+
74+
# Development files
75+
tests/
76+
test_*.py
77+
check_*.py
78+
validate_*.py
79+
*.bat

.env.example

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# LLM API Keys (必填)
2+
OPENAI_API_KEY=sk-your-openai-key-here
3+
ANTHROPIC_API_KEY=sk-ant-your-key-here
4+
5+
# 可选:Ollama 配置(如果使用本地模型)
6+
OLLAMA_BASE_URL=http://localhost:11434
7+
8+
# 应用配置
9+
LOG_LEVEL=INFO
10+
QUALITY_THRESHOLD=0.8
11+
MAX_RETRIES=3
12+
SANDBOX_TIMEOUT=30
13+
14+
# 存储路径
15+
DATA_DIR=./data
16+
WORKSPACE_DIR=./workspace
17+
OUTPUT_DIR=./output
18+
LOG_DIR=./logs

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,47 @@ jobs:
7171
- name: Type checking with mypy
7272
run: |
7373
mypy openspace_openhands_evolution/ --ignore-missing-imports || true
74+
75+
docker-build:
76+
runs-on: ubuntu-latest
77+
needs: [test, lint]
78+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
79+
80+
steps:
81+
- uses: actions/checkout@v4
82+
83+
- name: Set up Docker Buildx
84+
uses: docker/setup-buildx-action@v3
85+
86+
- name: Build Docker image
87+
uses: docker/build-push-action@v5
88+
with:
89+
context: .
90+
push: false
91+
tags: openspace-evolution:latest
92+
cache-from: type=gha
93+
cache-to: type=gha,mode=max
94+
95+
- name: Test Docker image
96+
run: |
97+
docker run --rm openspace-evolution:latest python -c "import openspace_openhands_evolution; print('✅ Docker build successful')"
98+
99+
production-check:
100+
runs-on: ubuntu-latest
101+
needs: [test, lint]
102+
103+
steps:
104+
- uses: actions/checkout@v4
105+
106+
- name: Set up Python
107+
uses: actions/setup-python@v5
108+
with:
109+
python-version: '3.12'
110+
111+
- name: Install dependencies
112+
run: |
113+
pip install -e .
114+
115+
- name: Run production readiness check
116+
run: |
117+
python check_production_ready.py

0 commit comments

Comments
 (0)