-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (83 loc) · 2.73 KB
/
Copy pathci.yml
File metadata and controls
106 lines (83 loc) · 2.73 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:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
verification:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: |
pyproject.toml
deploy/requirements.txt
- uses: actions/setup-node@v4
with:
node-version: '20.19.0'
cache: 'npm'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r deploy/requirements.txt
pip install -e .
pip install pytest
- name: Pytest
run: python -m pytest -q
- name: Compile package
run: python -m compileall -q src/openalphastack
- name: Install Dashboard dependencies
run: npm ci
- name: Test Dashboard
run: npm run dashboard:test
- name: Build Dashboard
run: npm run dashboard:build
- name: Audit high severity npm dependencies
run: npm audit --audit-level=high
- name: Unified CLI help
run: openalphastack --help
- name: Engine CLI help
run: openalphastack engine start --help
- name: Quote CLI help
run: openalphastack tools quote --help
- name: Tool schema check
run: |
for tool in quote technical fundamental flow news screen backtest trend signal_detector pivot fibonacci sentiment portfolio risk signal signal_rules; do
echo "Checking openalphastack tools $tool schema..."
openalphastack tools "$tool" --help > /dev/null 2>&1 || {
echo "ERROR: openalphastack tools $tool --help failed"
exit 1
}
done
echo "All package tools pass schema check"
- name: Signal rules baseline check
run: |
echo "Running signal_rules --list..."
openalphastack tools signal_rules --list
echo "Baseline check OK"
- name: Risk calculator help
run: |
openalphastack tools risk --help
- name: Signal validator help
run: |
openalphastack tools signal --help
public-mcp-container:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build standalone public MCP image
uses: docker/build-push-action@v6
with:
context: .
file: deploy/Dockerfile.public
push: false
tags: openalphastack-public-mcp:ci
cache-from: type=gha,scope=public-mcp
cache-to: type=gha,mode=max,scope=public-mcp