Spaces:
Sleeping
Sleeping
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run tests | |
| run: python -m pytest -q | |
| - name: Run local pre-submission checks | |
| env: | |
| API_BASE_URL: http://example.invalid/v1 | |
| MODEL_NAME: ci-dummy-model | |
| HF_TOKEN: ci-dummy-token | |
| run: python pre_submission_validate.py --skip-docker --skip-space | |