forked from forthfate/openorbit
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (62 loc) · 1.86 KB
/
Copy pathci.yml
File metadata and controls
64 lines (62 loc) · 1.86 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
needs: frontend
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.13']
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: frontend-dist
path: frontend/dist
- uses: actions/download-artifact@v4
with:
name: sdk-docs
path: site
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v6
- run: OPENORBIT_SKIP_FRONTEND_BUILD=1 uv sync --extra dev --locked
- run: uv run ruff check orbit/ backend/ tests/
- run: PYTHONPATH=backend uv run pytest -q
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# setup-node resolves the pnpm cache by invoking `pnpm store path`, so
# pnpm must be available before this step.
- uses: pnpm/action-setup@v4
with:
version: 12.3.4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- uses: astral-sh/setup-uv@v6
- run: pnpm install --frozen-lockfile
- run: pnpm run docs:build
- run: pnpm --filter agent-improvement-console-ui run build
- name: Verify bundled release version
run: |
expected="v$(node -p 'require("./frontend/package.json").version')"
grep --recursive --fixed-strings --quiet "$expected" frontend/dist/assets
- uses: actions/upload-artifact@v4
with:
name: frontend-dist
path: frontend/dist
if-no-files-found: error
- uses: actions/upload-artifact@v4
with:
name: sdk-docs
path: site
if-no-files-found: error