Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,79 +10,83 @@ jobs:
python:
name: Python SDK Tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: python-sdk/.venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
working-directory: python-sdk
run: poetry install --no-interaction --no-root

- name: Install project
working-directory: python-sdk
run: poetry install --no-interaction

- name: Run tests
working-directory: python-sdk
run: poetry run python -m unittest discover tests -v

typescript:
name: TypeScript SDK Tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Install protoc
uses: arduino/setup-protoc@v3
with:
version: "25.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.0.0

- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ~/.local/share/pnpm/store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
working-directory: typescript-sdk
run: pnpm install --frozen-lockfile


- name: Test Build
working-directory: typescript-sdk
run: pnpm run build

- name: Run tests
working-directory: typescript-sdk
run: pnpm run test
run: pnpm run test
9 changes: 4 additions & 5 deletions typescript-sdk/apps/dojo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"@copilotkit/runtime-client-gql": "1.9.2",
"@copilotkit/shared": "1.9.2",
"@mastra/client-js": "^0.10.9",
"@mastra/core": "^0.10.10",
"@mastra/dynamodb": "^0.13.0",
"@mastra/libsql": "^0.11.0",
"@mastra/core": "^0.11.1",
"@mastra/dynamodb": "^0.13.2",
"@mastra/libsql": "^0.11.2",
"@mastra/loggers": "^0.10.3",
"@mastra/memory": "^0.11.1",
"@mastra/memory": "^0.11.5",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/mdx": "^3.1.0",
"@mdx-js/react": "^3.1.0",
Expand Down Expand Up @@ -84,7 +84,6 @@
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.2.1",
"mastra": "^0.10.10",
"tailwindcss": "^4",
"typescript": "^5"
}
Expand Down
Loading