forked from coinbase/agentkit
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.33 KB
/
unit_tests.yml
File metadata and controls
57 lines (47 loc) · 1.33 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
name: Run Unit Tests
on: [pull_request]
jobs:
test-coinbase-agentkit-python:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./python/coinbase-agentkit
strategy:
matrix:
python: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Run tests
run: make test
test-agentkit-typescript:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["18", "20"]
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./typescript
- name: Install and test AgentKit.js
working-directory: ./typescript
run: |
pnpm install --frozen-lockfile
pnpm run test