seedream4 / .github /workflows /deploy.yml
wapadil
[MAJOR REFACTOR] SeedDream v4 架构优化
ad2cc89
raw
history blame contribute delete
861 Bytes
name: Deploy to Hugging Face Spaces
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run tests
run: |
python -m pytest tests/ -v || echo "No tests found, continuing..."
- name: Push to Hugging Face Hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git remote add hf https://huggingface.co/spaces/wapadil/seedream4
git push hf main --force