Spaces:
Sleeping
Sleeping
| name: CI | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| pip install pytest | |
| - name: Compile checks | |
| run: | | |
| python -m py_compile app.py env.py reward.py inference.py evaluate.py baseline.py | |
| - name: Unit tests | |
| run: | | |
| pytest -q | |
| - name: OpenEnv validate (local profile) | |
| run: | | |
| openenv validate --json --verbose | |
| - name: Inference smoke test (mock mode) | |
| run: | | |
| MOCK_INFERENCE=1 python inference.py | |
| - name: Inference smoke test (validation split) | |
| run: | | |
| MOCK_INFERENCE=1 TASK_SPLIT=validation ENV_SEED=123 python inference.py | |