-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (62 loc) · 1.95 KB
/
ci.yml
File metadata and controls
71 lines (62 loc) · 1.95 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
name: CI
on:
push:
pull_request:
jobs:
syntax-and-generate:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Python syntax check
run: |
python3 -m py_compile \
bootstrap_bot_stack.py \
configure_stack.py \
reverse_export_bot_stack.py \
make_migration_ready_stack.py \
bot.py \
group_bot.py \
xhs_adapter.py \
memory_store.py \
routing.py \
runners.py \
task_registry.py
- name: Shell syntax check
run: |
bash -n install.sh
bash -n install_ai_runtimes.sh
bash -n configure_ai_runtimes.sh
bash -n configure.sh
bash -n apply_stack.sh
bash -n health_check.sh
bash -n scripts/shared-memory-write.sh
zsh -n bootstrap_bot_stack.sh
zsh -n run_role_bot.sh
zsh -n run_group_bot.sh
- name: Generate local config for CI
run: |
printf '%s\n%s\n%s\n%s\n%s\n' \
"$HOME" \
"123456789" \
"com.example.telegrambots" \
"Y" \
"N" \
| python3 configure_stack.py
- name: Generate stack from CI config
run: |
python3 bootstrap_bot_stack.py --config bot_stack.bootstrap.toml
- name: Build migration-ready template
run: |
python3 reverse_export_bot_stack.py \
--source-repo "$PWD" \
--launch-agents-dir "$PWD/.ci-launchagents" \
--output "$PWD/bot_stack.reverse_exported.toml"
python3 make_migration_ready_stack.py \
--source "$PWD/bot_stack.reverse_exported.toml" \
--output "$PWD/bot_stack.migration_ready.toml" \
--target-home "/Users/your_user"