Skip to content

Retry OpenAI stroke eval when gpt-5.x returns empty content. #62

Retry OpenAI stroke eval when gpt-5.x returns empty content.

Retry OpenAI stroke eval when gpt-5.x returns empty content. #62

Workflow file for this run

name: Backend Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Run Backend Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: backend/requirements.txt
- name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends libgl1 libglib2.0-0
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install -r backend/requirements.txt
# CPU-only PyTorch (no GPU needed in CI)
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
- name: Run test suite
env:
GEMINI_API_KEY: ""
MAX_CONCURRENT_JOBS: "2"
run: |
pytest backend/tests/ \
-v \
--tb=short \
--junitxml=test-results.xml \
-p no:warnings
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: test-results.xml
retention-days: 14