Spaces:
Configuration error
Configuration error
Download .github/workflows/ci.yml from world44/humanize-e: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/spaces/world44/humanize-e/resolve/main/.github/workflows/ci.yml
- Command line
-
hf download hf://spaces/world44/humanize-e/.github/workflows/ci.yml
-
curl -L -o ci.yml https://huggingface.co/spaces/world44/humanize-e/resolve/main/.github/workflows/ci.yml
1.16 kB
| name: CI | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Cache pip dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install fastapi[all] | |
| - name: Run unit tests | |
| run: python -m unittest discover -s tests -p 'test_*.py' -v | |
| - name: Check syntax | |
| run: | | |
| python -m py_compile model.py app.py | |
| echo "Syntax check passed" | |