Skip to content

v8.1: Fix F1 regression, improve taint engine depth, add CI/CD, hones… #3

v8.1: Fix F1 regression, improve taint engine depth, add CI/CD, hones…

v8.1: Fix F1 regression, improve taint engine depth, add CI/CD, hones… #3

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