omargam220's picture
Add ZeroGPU deployment API Docker and CI/CD
20db40d
Raw History Blame Contribute Delete
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 .