Spaces:
Running on Zero
Running on Zero
| 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.12' | |
| - name: Install lightweight test dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install "torch>=2.8,<2.12" "huggingface_hub>=0.34,<2" "numpy>=2,<3" \ | |
| "pandas>=2.2,<3" "gradio==6.24.0" "transformers>=4.51,<6" \ | |
| "pytest>=8.3,<10" "ruff>=0.9,<1" | |
| - name: Ruff | |
| run: python -m ruff check app.py featurelens experiments tests scripts | |
| - name: Unit tests | |
| run: python -m pytest -q | |
| - name: Compile | |
| run: python -m compileall -q app.py featurelens experiments scripts | |
| - name: UI launch smoke | |
| run: python scripts/ui_smoke.py | |
| - name: Release check | |
| run: python scripts/release_check.py | |