-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (64 loc) · 1.83 KB
/
ci.yml
File metadata and controls
69 lines (64 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Validate
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install ruff
- run: ruff check . --ignore=E501,F821 --statistics
imports:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install openai
- name: Check all modules load
run: |
for mod in generator population_manager mutation_engine; do
echo "=== $mod ==="
python -c "import $mod; print('OK')"
done
for mod in evaluator.runtime_evaluator; do
echo "=== $mod ==="
python -c "import $mod; print('OK')"
done
- name: Check scripts parse (no-exec)
run: |
for script in infinite_research_loop.py run_experiment.py beautify_readme.py \
eval.py auto_evolve.py; do
echo "=== $script ==="
python -c "compile(open('$script').read(), '$script', 'exec'); print('syntax OK')"
done
experiment_design:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Validate benchmarks/tasks.json
run: |
python3 -c "
import json
with open('benchmarks/tasks.json') as f:
tasks = json.load(f)
assert len(tasks) >= 3
for t in tasks:
assert 'name' in t
assert 'hidden_test_files' in t
assert len(t['hidden_test_files']) >= 1
print(f'{len(tasks)} benchmarks OK')
"