Skip to content

Merge feature branch 003-discord-bot-access into main #3

Merge feature branch 003-discord-bot-access into main

Merge feature branch 003-discord-bot-access into main #3

name: Constitution Compliance Check
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:
jobs:
compliance:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run static analysis compliance checks
run: |
archive-rag check-compliance --static --no-tests --no-runtime
- name: Run compliance tests
run: |
archive-rag check-compliance --tests --no-static --no-runtime
- name: Generate compliance report
if: always()
run: |
archive-rag check-compliance --output-format json --report-file compliance-report.json || true
- name: Upload compliance report
if: always()
uses: actions/upload-artifact@v3
with:
name: compliance-report
path: compliance-report.json
- name: Check compliance status
run: |
archive-rag check-compliance --static --tests
if [ $? -ne 0 ]; then
echo "❌ Constitution compliance check failed"
echo "Review violations and fix before merging"
exit 1
fi
echo "✅ All compliance checks passed"