-
Notifications
You must be signed in to change notification settings - Fork 93
104 lines (85 loc) · 2.83 KB
/
Copy pathci.yml
File metadata and controls
104 lines (85 loc) · 2.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
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
97
98
99
100
101
102
103
104
name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
test:
name: Test & Lint
runs-on: ubuntu-latest
# Postgres service container for the Brain.openPostgres integration tests
# (gated on AGENTOS_TEST_POSTGRES_URL — tests skip when env var is absent).
services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_PASSWORD: ci_test_password
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
AGENTOS_TEST_POSTGRES_URL: postgresql://postgres:ci_test_password@localhost:5432/postgres
steps:
- uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: '20'
- name: Install PNPM
uses: pnpm/action-setup@v6
with:
version: 10
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Lint
run: pnpm run lint
- name: Type check
run: pnpm run typecheck
- name: Test with coverage
run: pnpm run test -- --coverage
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
# Fast targeted gate for the batch-1 hardening test set: fails in minutes
# without waiting on the coverage matrix. The full suite above is
# failure-gating too (44-red burn-down completed 2026-07-20).
batch1-tests:
name: Batch-1 gated tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: '20'
- name: Install PNPM
uses: pnpm/action-setup@v6
with:
version: 10
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Batch-1 tests (failure-gating)
run: >-
pnpm vitest run
src/core/llm/providers/__tests__/openai-cache-params.test.ts
src/core/llm/providers/__tests__/default-judge.test.ts
src/core/llm/providers/__tests__/openai-streaming-usage.test.ts
src/core/llm/providers/implementations/__tests__/openai-typed-cache-options.test.ts
src/api/__tests__/observability.genai.test.ts
src/api/__tests__/inclusive-input-tokens.test.ts
src/api/__tests__/hitl.llmJudge.test.ts
src/cognition/emergent/__tests__/decay-for-agent.test.ts
src/cognition/emergent/__tests__/adapt-personality.test.ts
src/cognition/rag/__tests__/neo4j-graphrag-export.test.ts