@@ -10,79 +10,83 @@ jobs:
10
10
python :
11
11
name : Python SDK Tests
12
12
runs-on : ubuntu-latest
13
-
13
+
14
14
steps :
15
15
- name : Checkout code
16
16
uses : actions/checkout@v4
17
-
17
+
18
18
- name : Set up Python
19
19
uses : actions/setup-python@v5
20
20
with :
21
21
python-version : ' 3.9'
22
-
22
+
23
23
- name : Install Poetry
24
24
uses : snok/install-poetry@v1
25
25
with :
26
26
version : latest
27
27
virtualenvs-create : true
28
28
virtualenvs-in-project : true
29
-
29
+
30
30
- name : Load cached venv
31
31
id : cached-poetry-dependencies
32
32
uses : actions/cache@v4
33
33
with :
34
34
path : python-sdk/.venv
35
35
key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
36
-
36
+
37
37
- name : Install dependencies
38
38
if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
39
39
working-directory : python-sdk
40
40
run : poetry install --no-interaction --no-root
41
-
41
+
42
42
- name : Install project
43
43
working-directory : python-sdk
44
44
run : poetry install --no-interaction
45
-
45
+
46
46
- name : Run tests
47
47
working-directory : python-sdk
48
48
run : poetry run python -m unittest discover tests -v
49
49
50
50
typescript :
51
51
name : TypeScript SDK Tests
52
52
runs-on : ubuntu-latest
53
-
53
+
54
54
steps :
55
55
- name : Checkout code
56
56
uses : actions/checkout@v4
57
-
57
+
58
58
- name : Set up Node.js
59
59
uses : actions/setup-node@v4
60
60
with :
61
61
node-version : ' 18'
62
-
62
+
63
63
- name : Install protoc
64
64
uses : arduino/setup-protoc@v3
65
65
with :
66
66
version : " 25.x"
67
67
repo-token : ${{ secrets.GITHUB_TOKEN }}
68
-
68
+
69
69
- name : Install pnpm
70
70
uses : pnpm/action-setup@v4
71
71
with :
72
72
version : 9.0.0
73
-
73
+
74
74
- name : Setup pnpm cache
75
75
uses : actions/cache@v4
76
76
with :
77
77
path : ~/.local/share/pnpm/store
78
78
key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
79
79
restore-keys : |
80
80
${{ runner.os }}-pnpm-store-
81
-
81
+
82
82
- name : Install dependencies
83
83
working-directory : typescript-sdk
84
84
run : pnpm install --frozen-lockfile
85
-
85
+
86
+ - name : Test Build
87
+ working-directory : typescript-sdk
88
+ run : pnpm run build
89
+
86
90
- name : Run tests
87
91
working-directory : typescript-sdk
88
- run : pnpm run test
92
+ run : pnpm run test
0 commit comments