Update test fixtures #27
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: test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| # Run in same container as production for consistent Tesseract OCR results | |
| container: | |
| image: python:3.13-slim-bookworm | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install system dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y --no-install-recommends tesseract-ocr tesseract-ocr-eng | |
| - name: Install Python dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install -r api/requirements.txt | |
| pip install pytest | |
| - name: Run unit tests | |
| run: python -m pytest tests/test_system_status.py tests/test_train_detection.py -v --tb=short |