Skip to content

chore: add GitHub badges, fix lint, create Cloudflare Pages project #3

chore: add GitHub badges, fix lint, create Cloudflare Pages project

chore: add GitHub badges, fix lint, create Cloudflare Pages project #3

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
lint-and-typecheck:
name: Lint & Typecheck (TypeScript)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
- run: pnpm lint
test-ts-sdk:
name: Test TypeScript SDK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build --filter=@vectorless/shared
- run: pnpm test --filter=vectorless
test-python-sdk:
name: Test Python SDK
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.11", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: pip install poetry
- name: Install dependencies
working-directory: sdks/python
run: poetry install
- name: Run tests
working-directory: sdks/python
run: poetry run pytest
- name: Type check
working-directory: sdks/python
run: poetry run mypy vectorless/
if: matrix.python-version == '3.11'
build:
name: Build All Packages
runs-on: ubuntu-latest
needs: [lint-and-typecheck]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build