-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (75 loc) · 2.47 KB
/
Copy pathdev-verify.yml
File metadata and controls
87 lines (75 loc) · 2.47 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
name: dev-verify
permissions:
contents: read
on:
push:
branches: [master]
paths:
- "Makefile"
- "scripts/**"
- ".github/workflows/dev-verify.yml"
- "!**/*.md"
- "!**/LICENSE"
- "!**/*.png"
- "!**/*.jpg"
- "!**/*.jpeg"
- "!**/*.gif"
- "!**/*.webp"
- "!**/*.ico"
pull_request:
branches: [master]
paths:
- "Makefile"
- "scripts/**"
- ".github/workflows/dev-verify.yml"
- "!**/*.md"
- "!**/LICENSE"
- "!**/*.png"
- "!**/*.jpg"
- "!**/*.jpeg"
- "!**/*.gif"
- "!**/*.webp"
- "!**/*.ico"
jobs:
dev-verify:
name: dev-verify (smoke tests + gateway health)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.0
- name: Clone SDK repos as siblings
# sdk-repos.txt lists SSH URLs; CI uses HTTPS equivalents.
run: |
parent="$(dirname "$GITHUB_WORKSPACE")"
git clone https://github.com/ai-agent-assembly/python-sdk.git "$parent/python-sdk"
git clone https://github.com/ai-agent-assembly/node-sdk.git "$parent/node-sdk"
git clone https://github.com/ai-agent-assembly/go-sdk.git "$parent/go-sdk"
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install Python smoke test dependencies
# pytest.ini addopts in python-sdk require pytest-cov, pytest-rerunfailures,
# and pytest-asyncio. Install all dev deps to match the SDK's test environment.
run: |
pip install \
pytest pytest-cov coverage \
pytest-rerunfailures pytest-asyncio \
python-dotenv pytest-benchmark
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
with:
version: "10.33.2"
- uses: actions/setup-node@v6
with:
node-version: "20"
- name: Install Node SDK dependencies
# --ignore-scripts skips the napi-rs postinstall that builds native bindings;
# smoke tests are pure JS/TS and do not require the compiled .node file.
run: pnpm install --no-frozen-lockfile --ignore-scripts
working-directory: ${{ github.workspace }}/../node-sdk
- uses: actions/setup-go@v6
with:
go-version: "stable"
- name: Run dev-verify
run: make dev-verify
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}