-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (74 loc) · 3.23 KB
/
Copy pathnightly-install.yml
File metadata and controls
86 lines (74 loc) · 3.23 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
name: Nightly Install Check
on:
schedule:
- cron: "30 3 * * *" # 03:30 UTC daily (30 min after UAT)
workflow_dispatch: {}
permissions:
contents: read
jobs:
fresh-install:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
python-version: ${{ matrix.python-version }}
- name: Install from source
run: uv sync --locked --all-packages --group dev
- name: Run studyloop doctor
run: |
output=$(uv run studyloop doctor --json) || true
echo "$output" | python3 -c "
import json, sys
checks = json.load(sys.stdin)
failed = [c for c in checks if c['status'] == 'fail']
warned = [c for c in checks if c['status'] == 'warn']
passed = [c for c in checks if c['status'] == 'pass']
skipped = [c for c in checks if c['status'] == 'skip']
print(f'Doctor: {len(passed)} passed, {len(warned)} warned, {len(skipped)} skipped, {len(failed)} failed')
for f in failed:
print(f' FAIL: {f[\"category\"]}/{f[\"name\"]} — {f[\"message\"]}')
# Fail CI on core/database/config failures; warnings are acceptable
# (e.g. missing optional tmux, agents, or voice deps on CI)
core_fails = [f for f in failed if f['category'] in ('core', 'database', 'config')]
if core_fails:
print(f'::error::{len(core_fails)} core check(s) failed')
sys.exit(1)
"
- name: Verify CLI entry point
run: uv run studyloop --version
- name: Verify agent-session-tools entry point
run: uv run session-export --help
# A4: the real `uv tool install` path -- the one a fresh clone's
# ./scripts/install.sh actually uses -- otherwise has zero execution
# coverage anywhere in CI. This runs it for real, into a scratch tool
# dir, and proves the two global console scripts it installs work.
installer:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
python-version: "3.12"
- name: Run scripts/install.sh
# HOME is isolated because `studyloop install agents` writes into it
# (~/.kiro, ~/.claude, ~/.codex, ~/.config/opencode). With a fresh HOME
# there is no Python 3.12 either, so this also exercises the script's
# `uv python install` fallback every night.
env:
HOME: ${{ runner.temp }}/home
UV_TOOL_DIR: ${{ runner.temp }}/tools
UV_TOOL_BIN_DIR: ${{ runner.temp }}/bin
run: mkdir -p "$HOME" && ./scripts/install.sh --non-interactive --no-smoke
- name: Verify installed CLI entry points
env:
UV_TOOL_BIN_DIR: ${{ runner.temp }}/bin
run: |
"$UV_TOOL_BIN_DIR/studyloop" --version
"$UV_TOOL_BIN_DIR/session-export" --help