Skip to content

feat: Add new icons and refactor view switchers #20

feat: Add new icons and refactor view switchers

feat: Add new icons and refactor view switchers #20

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
defaults:
run:
working-directory: .
jobs:
python:
name: Python ${{ matrix.python-version }} (pytest)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements-dev.txt
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run pytest with coverage
run: |
python -m pytest tests/python \
--cov=src/runtime \
--cov-report=xml:coverage-python.xml \
--cov-report=term
- name: Upload Python coverage artifact
if: matrix.python-version == '3.12'
uses: actions/upload-artifact@v4
with:
name: coverage-python
path: coverage-python.xml
typescript:
name: TypeScript (Vitest)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Run Vitest with coverage
run: npm run test:cov
- name: Upload TypeScript coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-typescript
path: coverage-ts/
e2e:
name: End-to-end (Playwright)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
run: npm run test:e2e
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7