Merge feature branch 003-discord-bot-access into main #3
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: 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" | |