Repository navigation
ci(pipeline): add CI quality, typing, coverage, security scanning, and PR title workflows - #44
Merged
abhirajadhikary06 merged 3 commits intoNov 16, 2026
Conversation
…d PR title workflows
…s, and enable PR event on title check
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
…en hashing false-positive
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Establishes a comprehensive Continuous Integration (CI) and security scanning pipeline to ensure nothing merges without strict automated verification.
FastAPI Cloud and production environments install dependencies directly from Python packaging files, where packages requiring C/C++ compilation from source can fail unpredictably. This PR pins the runtime environment to Python 3.11 (where PyMuPDF, ONNX Runtime, and PyTorch provide prebuilt binary wheels), locks all 142 dependencies with
uv.lock, and enforces code quality, type safety, test coverage, and multi-layered security audits on every Pull Request.Changes Included
1. Python Environment & Dependency Locking
requires-python = ">=3.11,<3.12"inpyproject.tomlto guarantee pre-built binary wheel compatibility for PyMuPDF (fitz), ONNX Runtime, and Torch."obliq-ocr==0.1.3".uv.lockwith deterministic package resolutions and cryptographic hashes.2. Code Quality & Static Analysis Gates
ruff format.[tool.ruff.lint]ignore rules for FastAPI route dependencies (B008), line lengths (E501), and async filesystem operations (ASYNC109,ASYNC240).src/withmypy.User,ApiKey,UsageRecord, andCreditLedger(standardizing onuuid.UUID).3. Testing & Coverage Minimums (>= 60%)
[tool.coverage.report] fail_under = 60with branch coverage enabled.create_access_token,create_refresh_token,decode_token)./healthand/readydependency health checks.4. Clean-Environment Wheel & Dependency Install Check
clean-installCI job that boots on a pristine runner, installs packaging tools, runspip install ., and verifies imports forobliq_api,fitz,onnxruntime, andobliq_ocrwithout source-build fallback.5. Multi-Layer Security Scanning
github/codeql-action).pip-audit: Scans installed environments and lockfiles for known CVEs.gitleaks/gitleaks-action@v2(fetch-depth: 0).actions/dependency-review-action@v4.6. Pull Request Governance
Validate Conventional Commit Titleworkflow usingamannn/action-semantic-pull-request@v5enforcing Conventional Commit PR titles (feat:,fix:,ci:,docs:, etc.).mainrequiring all 9 checks to be green before merge.Verification & Status Checks
All 9 checks executed and passed 100% green in GitHub Actions:
Lint & Format (Ruff)(29s) — PassedType Check (mypy)(1m 1s) — PassedUnit & Contract Tests & Coverage(31s) — Passed (60.67% coverage)Clean Environment Install Check(46s) — PassedSecurity Audit (pip-audit)(31s) — PassedSecret Scanning (Gitleaks)(6s) — PassedCodeQL Security Scan(44s) — PassedDependency Review Scan(19s) — PassedValidate Conventional Commit Title(14s) — PassedChecklist
uv.lockgenerated and committedCloses #2