This repository was archived by the owner on Jun 18, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (88 loc) · 2.86 KB
/
Copy pathci.yml
File metadata and controls
108 lines (88 loc) · 2.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
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
name: CI
on:
push:
branches: [main, master]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
architecture-gate:
name: Architecture gate
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies (uv lockfile)
run: uv sync --frozen --extra dev
- name: Run architecture gate (boundaries + uri3 doctor)
run: uv run bash scripts/ci/architecture_gate.sh
test:
name: Full test suite
runs-on: ubuntu-latest
needs: architecture-gate
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies (uv lockfile)
run: uv sync --frozen --extra dev
- name: pytest
run: uv run pytest -q
- name: Check www docs examples are up to date
run: |
uv run make www-docs-check
uv run python3 scripts/www/check_examples_links.py
examples:
name: Examples integration
runs-on: ubuntu-latest
needs: test
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies (uv lockfile + browser)
run: |
uv sync --frozen --extra dev --extra browser
uv run playwright install chromium
- name: Run examples tests
run: uv run pytest tests/examples -q
www-docker:
name: WWW Docker smoke
runs-on: ubuntu-latest
needs: architecture-gate
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Build and smoke-test www chat image
run: |
docker compose -f www/docker-compose.yml build
docker compose -f www/docker-compose.yml up -d
for i in $(seq 1 30); do
if curl -fsS http://localhost:8788/health >/dev/null 2>&1; then break; fi
sleep 2
done
curl -fsS http://localhost:8788/health
curl -fsS http://localhost:8788/www/chat.html | head -c 200
docker exec hypervisor-www-chat python -c "import urish.backends.run"
curl -fsS -X POST http://localhost:8788/api/uri/call \
-H 'Content-Type: application/json' \
-d '{"uri":"workflow://bank/batch-transfer/dry-run","dry_run":true}' \
| python3 -c "import sys,json; d=json.load(sys.stdin); assert d['ok'] is True, d"
docker compose -f www/docker-compose.yml down