-
Notifications
You must be signed in to change notification settings - Fork 61
106 lines (87 loc) · 2.84 KB
/
ci.yml
File metadata and controls
106 lines (87 loc) · 2.84 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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
tests:
name: tests
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python 3.13
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: |
worker_plan/pyproject.toml
mcp_cloud/requirements.txt
worker_plan_database/requirements.txt
frontend_multi_user/pyproject.toml
- name: Create test venv
run: python -m venv worker_plan/.venv
- name: Install dependencies
run: |
worker_plan/.venv/bin/python -m pip install --upgrade pip
worker_plan/.venv/bin/pip install -e worker_plan
worker_plan/.venv/bin/pip install -r mcp_cloud/requirements.txt
worker_plan/.venv/bin/pip install -r worker_plan_database/requirements.txt
worker_plan/.venv/bin/pip install -e frontend_multi_user
- name: Run test suite
run: worker_plan/.venv/bin/python test.py
lint:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python 3.13
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
- name: Install ruff
run: python -m pip install --upgrade pip ruff
- name: Run high-signal lint checks
run: ruff check --select=E9,F63,F7,F82 .
typecheck:
name: typecheck
runs-on: ubuntu-latest
continue-on-error: true
timeout-minutes: 35
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python 3.13
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: |
worker_plan/pyproject.toml
frontend_multi_user/pyproject.toml
worker_plan_database/requirements.txt
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: "22"
- name: Prepare Python environment for pyright
run: |
python -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/pip install -e worker_plan
.venv/bin/pip install -e frontend_multi_user
.venv/bin/pip install -r worker_plan_database/requirements.txt
ln -sfn ../.venv frontend_multi_user/.venv
ln -sfn ../.venv worker_plan_database/.venv
- name: Install pyright
run: npm install -g pyright
- name: Run pyright (non-blocking while baseline is established)
run: |
pyright -p frontend_multi_user/pyrightconfig.json
pyright -p worker_plan_database/pyrightconfig.json