-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (56 loc) · 2.03 KB
/
Copy pathci.yml
File metadata and controls
59 lines (56 loc) · 2.03 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
# .github/workflows/ci.yml
# 文件说明:为 Keepa CLI MVP 提供无 secret 的 GitHub Actions 基础验证。
# 主要职责:在远程仓库运行标准库 unittest 与 npm wrapper smoke,确保 Agent-first CLI 可回归。
# 依赖边界:不读取 KEEPA_API_KEY,不访问真实 Keepa API。
name: CI
on:
push:
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Run unit tests
run: python -m unittest discover -s tests -v
- name: Check fixture sync
run: python scripts/check_fixture_sync.py
- name: Smoke npm wrapper
run: node bin/keepa-cli.js --json doctor
env:
KEEPA_CLI_PYTHON: python
- name: Smoke capabilities
run: node bin/kc.js --json capabilities
env:
KEEPA_CLI_PYTHON: python
mcp-sdk-adapter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install package with official MCP SDK extra
run: python -m pip install -e ".[mcp-sdk]"
- name: Run SDK adapter unit tests
run: python -m unittest tests.test_mcp_sdk_adapter tests.test_mcp_http_contract -v
- name: Run MCP quality gate
run: |
mkdir -p artifacts/mcp-performance
python scripts/check_mcp_quality_gate.py --require-sdk --performance-out artifacts/mcp-performance/mcp-performance-ubuntu-py311.json
- name: Upload MCP performance artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: mcp-performance-${{ runner.os }}-py311-${{ github.run_attempt }}
path: artifacts/mcp-performance/*.json
if-no-files-found: warn
retention-days: 14