Files
microdao-daarion/.github/workflows/python-services-ci.yml
Apple aee2a55a26 fix: CI branch filter + Cursor auto-context rules
CI:
- python-services-ci now only runs on main branch (not feature branches)
- Install deps with lock fallback (if lock file is stale, install without it)

Cursor rules:
- New project-context.mdc (alwaysApply: true) — gives AI full project
  context immediately in every new chat
- Updated noda1-operations.mdc: alwaysApply: true, fixed container names
  (dagi-router-node1, not dagi-staging-router)

This ensures that when opening a new Cursor chat in this workspace,
the AI already knows: project structure, NODE1 server details, all 13
agents, SSH credentials location, and key documentation paths.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 09:09:20 -08:00

56 lines
1.4 KiB
YAML

name: python-services-ci
on:
push:
branches: [main]
paths:
- "services/**"
- "gateway-bot/**"
- ".github/workflows/python-services-ci.yml"
pull_request:
branches: [main]
paths:
- "services/**"
- "gateway-bot/**"
- ".github/workflows/python-services-ci.yml"
jobs:
python-service-checks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
service:
- services/rag-service
- services/index-doc-worker
- services/artifact-registry
- gateway-bot
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install deps
working-directory: ${{ matrix.service }}
run: |
python -m pip install --upgrade pip
if [ -f requirements.lock ]; then
python -m pip install -r requirements.txt -c requirements.lock || \
python -m pip install -r requirements.txt
else
python -m pip install -r requirements.txt
fi
- name: Pip check
working-directory: ${{ matrix.service }}
run: python -m pip check
- name: Smoke compile
working-directory: ${{ matrix.service }}
run: python -m compileall -q .