mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 15:29:36 +00:00
Root cause: pytest/pytest-asyncio/aiosqlite minimum version pins (>=X)
allowed pip to install latest versions that may have breaking changes.
The first CI run (a319feb) passed because it ran before the update;
all subsequent runs failed with exit code 4 (collection error).
Fix: Pin upper bounds on test dependencies:
- pytest>=8.0.0,<8.4.0
- pytest-asyncio>=0.24.0,<0.26.0
- aiosqlite>=0.20.0,<0.21.0
- httpx>=0.28.1,<0.29.0
Also restore architecture_brief.py to CI pipeline (was removed
during debugging, now restored since issue was deps not script).
https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
# Runs when salesflow-saas/ changes (monorepo root)
|
|
name: Dealix CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "salesflow-saas/**"
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "salesflow-saas/**"
|
|
|
|
jobs:
|
|
backend:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: salesflow-saas/backend
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -r requirements.txt -r requirements-dev.txt
|
|
- name: Architecture Brief (governance validation)
|
|
working-directory: salesflow-saas
|
|
run: python scripts/architecture_brief.py
|
|
- name: Pytest (full suite + launch scenarios)
|
|
env:
|
|
DATABASE_URL: sqlite+aiosqlite:///./ci_dealix.db
|
|
DEALIX_INTERNAL_API_TOKEN: ""
|
|
run: python -m pytest tests -q --tb=line
|
|
|
|
frontend:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: salesflow-saas/frontend
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: npm
|
|
cache-dependency-path: salesflow-saas/frontend/package-lock.json
|
|
- name: Install
|
|
run: npm ci
|
|
- name: Lint
|
|
run: npm run lint
|
|
- name: Build
|
|
run: npm run build
|
|
- name: Install Playwright Chromium
|
|
run: npx playwright install --with-deps chromium
|
|
- name: E2E smoke (auth shell)
|
|
env:
|
|
CI: true
|
|
run: npm run test:e2e
|