Skip to content

fix: support file-based components in dependency resolution and remote downloads #47

fix: support file-based components in dependency resolution and remote downloads

fix: support file-based components in dependency resolution and remote downloads #47

Workflow file for this run

name: Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test-typescript:
name: TypeScript Tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: typescript/package-lock.json
- name: Install dependencies
working-directory: typescript
run: npm ci
- name: Build
working-directory: typescript
run: npm run build
- name: Run tests
working-directory: typescript
run: npm test
- name: Run linter
working-directory: typescript
run: npm run lint || true
test-python:
name: Python Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: python/pyproject.toml
- name: Install dependencies
working-directory: python
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests
working-directory: python
run: pytest -v
build-check:
name: Build Check
runs-on: ubuntu-latest
needs: [test-typescript, test-python]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: typescript/package-lock.json
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build TypeScript
working-directory: typescript
run: |
npm ci
npm run build
- name: Build Python
working-directory: python
run: |
python -m pip install --upgrade pip build
python -m build
- name: Upload TypeScript artifacts
uses: actions/upload-artifact@v4
with:
name: typescript-dist
path: typescript/dist/
retention-days: 7
- name: Upload Python artifacts
uses: actions/upload-artifact@v4
with:
name: python-dist
path: python/dist/
retention-days: 7