chore: stage final changes for merge (deps/docs):\n- pyproject.toml: … #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Python dependencies (app + dev) | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e .[dev] | |
| - 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 | |