Repository navigation
120 lines (102 loc) · 3.69 KB
/
Copy pathci.yml
File metadata and controls
120 lines (102 loc) · 3.69 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: Base Context checks
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
workflow_call:
inputs:
source_ref:
description: Exact source commit to qualify for release
required: true
type: string
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-check:
name: Build, types and formatting
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ inputs.source_ref || github.sha }}
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
cache: npm
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev fd-find ripgrep
sudo ln -s $(which fdfind) /usr/local/bin/fd
- name: Install dependencies
run: npm ci
- name: Build checked-in source
run: npm run build:source
- name: Check
run: npm run check
- name: Check native benchmark protocol
working-directory: benchmarks/python-realworld-30/native
run: python3 -m unittest test_base_protocol test_native_lifecycle
- name: Require committed formatting
run: git diff --exit-code
offline-tests:
name: Offline ${{ matrix.package }} ${{ matrix.shard }} ${{ matrix.group }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
- { package: agent, shard: "1/1" }
- { package: ai, shard: "1/1" }
- { package: tui, shard: "1/1" }
- { package: coding-agent, shard: "1/8" }
- { package: coding-agent, shard: "2/8" }
- { package: coding-agent, shard: "3/8" }
- { package: coding-agent, shard: "4/8" }
- { package: coding-agent, shard: "5/8" }
- { package: coding-agent, shard: "6/8" }
- { package: coding-agent, shard: "7/8" }
- { package: coding-agent, shard: "8/8" }
- { package: coding-agent, shard: "1/1", group: kernel }
- { package: coding-agent, shard: "1/1", group: process-stress }
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ inputs.source_ref || github.sha }}
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
cache: npm
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev fd-find ripgrep
sudo ln -s $(which fdfind) /usr/local/bin/fd
- name: Install dependencies
run: npm ci
- name: Build checked-in source
run: npm run build:source
- name: Install uv
if: matrix.package == 'coding-agent'
run: |
python3 -m pip install --user uv
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Run isolated offline tests
env:
TEST_PACKAGE: ${{ matrix.package }}
TEST_SHARD: ${{ matrix.shard }}
TEST_GROUP: ${{ matrix.group }}
run: node scripts/test-offline.mjs "$TEST_PACKAGE" --shard="$TEST_SHARD" ${TEST_GROUP:+--group="$TEST_GROUP"}