Skip to content

E2E foundation, contracts, and CI #2

E2E foundation, contracts, and CI

E2E foundation, contracts, and CI #2

Workflow file for this run

name: CI
on:
push:
branches: [ main, master, '**' ]
pull_request:
branches: [ main, master, '**' ]
jobs:
test-python:
name: Python tests (pytest)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f pyproject.toml ]; then pip install -e . || true; fi
- name: Run pytest
run: |
python -m pytest -q
e2e-playwright:
name: E2E smoke (Playwright)
runs-on: ubuntu-latest
needs: test-python
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Node dependencies
run: |
if [ -f package.json ]; then npm ci || npm install; fi
- name: Install Playwright browsers and dependencies
run: |
npx playwright install --with-deps
- name: Run Playwright smoke tests
env:
# limit providers to local filesystem to avoid external deps during CI
SCIDK_PROVIDERS: local_fs
run: |
npm run e2e