Metadata-Version: 2.4
Name: comfyui-workflow
Version: 0.1.0
Summary: CI/CD pipeline runner for ComfyUI workflows
Project-URL: Homepage, https://github.com/brnv/comfyui-workflow
Author-email: Artem <brnv@canva.com>
License-Expression: MIT
License-File: LICENSE
Keywords: automation,cicd,comfyui,pipeline,workflow
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: pyyaml>=6.0
Description-Content-Type: text/markdown

# comfyui-workflow

CI/CD pipeline runner for ComfyUI workflows.

## Installation

```bash
pip install comfyui-workflow
```

## Usage

Create a `pipeline.yaml`:

```yaml
name: my-comfyui-pipeline
steps:
  - name: validate workflow
    command: python -c "import json; json.load(open('workflow.json'))"

  - name: run workflow
    command: python run_comfyui.py --workflow workflow.json
    timeout: 600

  - name: check outputs
    command: test -f output/result.png

  - name: upload artifacts
    command: aws s3 cp output/ s3://my-bucket/runs/ --recursive
    continue_on_failure: true
```

```bash
comfyui-workflow pipeline.yaml
comfyui-workflow pipeline.yaml --json   # machine-readable report
```

### Python

```python
from comfyui_workflow import Pipeline

p = Pipeline(name="my-pipeline")
p.add_step("lint", "ruff check .")
p.add_step("test", "pytest", timeout=120)
p.add_step("deploy", "bash deploy.sh")
p.run()
```

## License

MIT
