Skip to content

Commit

Permalink
added CI
Browse files Browse the repository at this point in the history
  • Loading branch information
glitch003 committed Jan 4, 2025
1 parent 9d44d6e commit c644220
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/js-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: JS SDK Server Tests

on:
push:
branches: [main]
paths:
- "js-sdk-server/**"
pull_request:
branches: [main]
paths:
- "js-sdk-server/**"

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "npm"
cache-dependency-path: js-sdk-server/package-lock.json

- name: Install dependencies
working-directory: js-sdk-server
run: npm ci

- name: Run tests
working-directory: js-sdk-server
run: npm test
39 changes: 39 additions & 0 deletions .github/workflows/python-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Python SDK Tests

on:
push:
branches: [main]
paths:
- "python/**"
pull_request:
branches: [main]
paths:
- "python/**"

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Install dependencies
working-directory: python
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .
- name: Run tests
working-directory: python
run: |
pytest tests/ -v

0 comments on commit c644220

Please sign in to comment.