feat(perf): RAM-first indexing — batch SQLite write at end of scan (closes #10 phase-1) #89
Workflow file for this run
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: CodeLens Quality Gate | |
| on: | |
| push: | |
| branches: [main, develop, 'feature/**'] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| quality-gate: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11', '3.12'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| pip install pyyaml | |
| - name: Initialize CodeLens | |
| run: | | |
| python3 scripts/codelens.py init . | |
| - name: Scan codebase | |
| run: | | |
| python3 scripts/codelens.py scan . | |
| - name: Run quality gate | |
| run: | | |
| python3 scripts/codelens.py check . --severity high --sarif | |
| - name: Upload SARIF results | |
| if: always() | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: codelens-results.sarif | |
| category: codelens | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| needs: quality-gate | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Run benchmarks | |
| run: | | |
| python3 scripts/codelens.py benchmark . | |
| - name: Check for regression | |
| run: | | |
| python3 benchmarks/check_regression.py --compare baseline |