Spaces:
Running on Zero
Running on Zero
Download .github/workflows/ci.yml from omargam220/PlotCraft: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/spaces/omargam220/PlotCraft/resolve/main/.github/workflows/ci.yml
- Command line
-
hf download hf://spaces/omargam220/PlotCraft/.github/workflows/ci.yml
-
curl -L -o ci.yml https://huggingface.co/spaces/omargam220/PlotCraft/resolve/main/.github/workflows/ci.yml
661 Bytes
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install test dependencies | |
| run: pip install fastapi httpx pytest | |
| - name: Run tests | |
| run: python -m pytest -q | |
| - name: Check Python syntax | |
| run: python -m compileall -q app.py api src tests | |
| container: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build container | |
| run: docker build --tag plotcraft-api . | |