style(ai-service): fix trailing whitespace in regression_harness/eval… #1
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: OCR Regression Test | |
| on: | |
| push: | |
| paths: | |
| - 'app/ai-service/services/ocr.py' | |
| - 'app/ai-service/services/preprocessing.py' | |
| - 'app/ai-service/regression_harness/**' | |
| branches: [ main, develop ] | |
| pull_request: | |
| paths: | |
| - 'app/ai-service/services/ocr.py' | |
| - 'app/ai-service/services/preprocessing.py' | |
| - 'app/ai-service/regression_harness/**' | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| regression: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| - name: Install System Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y tesseract-ocr libtesseract-dev | |
| - name: Install Python Dependencies | |
| working-directory: ./app/ai-service | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install Pillow pytesseract | |
| - name: Run OCR Regression Harness | |
| working-directory: ./app/ai-service | |
| run: | | |
| export PYTHONPATH=$PYTHONPATH:. | |
| python regression_harness/cli.py --output ocr_report.json | |
| - name: Upload Regression Report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ocr-regression-report | |
| path: app/ai-service/ocr_report.json | |
| retention-days: 14 |