Skip to content

[codex] Productize Cortex for first-100 beta readiness #19

[codex] Productize Cortex for first-100 beta readiness

[codex] Productize Cortex for first-100 beta readiness #19

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
python:
name: Python checks and backend tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install backend test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r backend/requirements.txt
- name: Compile Python sources
run: |
python -m compileall -q \
backend \
scripts \
capture.py \
github_store.py \
ingest.py \
instrumentation.py \
mcp_server.py \
redis_store.py \
ui.py
- name: Run backend unit tests
run: python -m unittest discover backend/tests
- name: Run retrieval quality evaluation
run: python scripts/retrieval_eval.py
- name: Run adaptation quality evaluation
run: python scripts/adaptation_eval.py
- name: Check beta docs currency
run: python scripts/check_docs_current.py
- name: Run backend beta smoke
run: python scripts/backend_beta_smoke.py
- name: Run lightweight ops readiness
run: python scripts/ops_readiness_check.py --skip-tests --skip-build --output-root "$RUNNER_TEMP/cortex-empty-outputs"
distribution:
name: Distribution site and update manifest
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Validate distribution site
run: python scripts/check_distribution_site.py
- name: Validate site update manifest
run: python scripts/validate_update_manifest.py site/downloads/latest.json
macos-app:
name: macOS app build
runs-on: macos-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build app bundle
env:
CORTEX_BUNDLE_PYTHON: "0"
CORTEX_CODESIGN_IDENTITY: "-"
CORTEX_CODESIGN_TIMESTAMP: "0"
run: ./macos/build.sh
- name: Verify ad-hoc signed app
run: codesign --verify --deep --strict --verbose=2 macos/build/Cortex.app