@@ -10,79 +10,83 @@ jobs:
1010 python :
1111 name : Python SDK Tests
1212 runs-on : ubuntu-latest
13-
13+
1414 steps :
1515 - name : Checkout code
1616 uses : actions/checkout@v4
17-
17+
1818 - name : Set up Python
1919 uses : actions/setup-python@v5
2020 with :
2121 python-version : ' 3.9'
22-
22+
2323 - name : Install Poetry
2424 uses : snok/install-poetry@v1
2525 with :
2626 version : latest
2727 virtualenvs-create : true
2828 virtualenvs-in-project : true
29-
29+
3030 - name : Load cached venv
3131 id : cached-poetry-dependencies
3232 uses : actions/cache@v4
3333 with :
3434 path : python-sdk/.venv
3535 key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
36-
36+
3737 - name : Install dependencies
3838 if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
3939 working-directory : python-sdk
4040 run : poetry install --no-interaction --no-root
41-
41+
4242 - name : Install project
4343 working-directory : python-sdk
4444 run : poetry install --no-interaction
45-
45+
4646 - name : Run tests
4747 working-directory : python-sdk
4848 run : poetry run python -m unittest discover tests -v
4949
5050 typescript :
5151 name : TypeScript SDK Tests
5252 runs-on : ubuntu-latest
53-
53+
5454 steps :
5555 - name : Checkout code
5656 uses : actions/checkout@v4
57-
57+
5858 - name : Set up Node.js
5959 uses : actions/setup-node@v4
6060 with :
6161 node-version : ' 18'
62-
62+
6363 - name : Install protoc
6464 uses : arduino/setup-protoc@v3
6565 with :
6666 version : " 25.x"
6767 repo-token : ${{ secrets.GITHUB_TOKEN }}
68-
68+
6969 - name : Install pnpm
7070 uses : pnpm/action-setup@v4
7171 with :
7272 version : 9.0.0
73-
73+
7474 - name : Setup pnpm cache
7575 uses : actions/cache@v4
7676 with :
7777 path : ~/.local/share/pnpm/store
7878 key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
7979 restore-keys : |
8080 ${{ runner.os }}-pnpm-store-
81-
81+
8282 - name : Install dependencies
8383 working-directory : typescript-sdk
8484 run : pnpm install --frozen-lockfile
85-
85+
86+ - name : Test Build
87+ working-directory : typescript-sdk
88+ run : pnpm run build
89+
8690 - name : Run tests
8791 working-directory : typescript-sdk
88- run : pnpm run test
92+ run : pnpm run test
0 commit comments