Repository navigation
96 lines (80 loc) · 2.85 KB
/
Copy pathci.yml
File metadata and controls
96 lines (80 loc) · 2.85 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Suíte de freeze: orchestrator, bench, pytest do agent-setup e validate.
# Graphify fica OFF (EVOLVELOOP_GRAPHIFY não é definida).
# Ollama não é instalado: retrieval lexical usa o fallback BM25 (ADR-0005).
# Nenhuma API key de vendor — vendor_http_cache_hit permanece NOT_MEASURED.
#
# Runtime policy (M1): StateDb uses node:sqlite (available since Node 22.5) and
# better-sqlite3@13 requires node>=22. Contract: engines.node >=22.5.0.
name: CI
on:
pull_request:
push:
branches:
- main
- "release/**"
- "cursor/**"
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
suite:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Minimum supported (node:sqlite) + current LTS line compatible with engines.
node-version: ["22", "24"]
steps:
- uses: actions/checkout@v4
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: orchestrator/package-lock.json
- name: Assert Node meets engines (>=22.5)
run: |
node -e "
const [maj, min] = process.versions.node.split('.').map(Number);
if (maj < 22 || (maj === 22 && min < 5)) {
console.error('Node', process.version, 'below engines >=22.5.0');
process.exit(1);
}
console.log('node', process.version, 'OK for engines >=22.5.0');
"
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install measurement tokenizer
run: |
python -m venv /tmp/v22-baseline-venv
/tmp/v22-baseline-venv/bin/pip install -r docs/v22/baseline/requirements.txt
echo "/tmp/v22-baseline-venv/bin" >> "$GITHUB_PATH"
if ! command -v rg >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y ripgrep
fi
rg --version
- name: Install orchestrator
working-directory: orchestrator
run: npm ci
- name: npm test
working-directory: orchestrator
run: npm test
- name: npm run test:bench
working-directory: orchestrator
run: npm run test:bench
- name: Install agent-setup
run: python -m pip install -e "./agent-setup[dev]"
- name: pytest
working-directory: agent-setup
run: python -m pytest -q
- name: pytest wiki index
run: python -m pytest -q fixtures/evolveloop-wiki-vault/tests/test_index.py
- name: v23 readiness structural
run: python3 scripts/v23/test_readiness.py
- name: validate
run: bash docs/architecture/v2.2/scripts/validate-v22-artifacts.sh