Repository navigation
Nightly Tasks #111
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: Nightly Tasks | |
| on: | |
| schedule: | |
| - cron: "0 2 * * *" # 02:00 UTC daily | |
| workflow_dispatch: | |
| jobs: | |
| update-dependencies: | |
| name: Update Dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Update pip dependencies | |
| run: | | |
| pip install pip-tools | |
| pip-compile requirements.in --output-file requirements.txt --upgrade 2>/dev/null || true | |
| - name: Create PR if changes | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| title: "chore: update Python dependencies" | |
| branch: chore/update-deps | |
| commit-message: "chore: update Python dependencies" | |
| run-benchmarks: | |
| name: Run Benchmarks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install system dependencies (Tesseract OCR) | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y -qq tesseract-ocr tesseract-ocr-ara tesseract-ocr-eng libtesseract-dev 2>/dev/null || true | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt -r requirements-dev.txt | |
| - name: Run benchmarks | |
| run: pytest tests/ -m benchmark -v --benchmark-only 2>/dev/null || echo "No benchmarks found" |