Skip to content

.github/workflows/test-workflows.yaml #106

.github/workflows/test-workflows.yaml

.github/workflows/test-workflows.yaml #106

name: Test ComfyUI Example Workflows
on:
push:
branches:
- master
workflow_dispatch:
jobs:
test-default-workflow:
strategy:
fail-fast: false
matrix:
os: [macos, linux]
include:
- os: macos
runner_label: [self-hosted, m2]
- os: linux
cuda_version: 12.1
runner_label: [self-hosted, Linux, t4]
runs-on: ${{ matrix.runner_label }}
steps:
- name: Test Default Workflow
uses: comfy-org/comfy-action@main
with:
os: ${{ matrix.os }}
cuda_version: ${{ matrix.cuda_version }}
models-json: '{"v1-5-pruned-emaonly.ckpt": {"url": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt", "directory": "checkpoints"}}'
workflow_name: "default-workflow"
workflow_json_path: '.github/workflows/json_examples/workflow_api.json'
gcs_bucket_name: 'comfy-ci-results'
google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
output_prefix: 'ComfyUI'
timeout: 50
- name: Test Lora Workflow
uses: comfy-org/comfy-action@main
with:
os: ${{ matrix.os }}
cuda_version: ${{ matrix.cuda_version }}
models-json: '{"v1-5-pruned-emaonly.ckpt": {"url": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt", "directory": "checkpoints"}, "epiNoiseoffset_v2.safetensors": {"url": "https://huggingface.co/adhikjoshi/epi_noiseoffset/resolve/main/epiNoiseoffset_v2.safetensors", "directory": "loras"}}'
workflow_name: "lora-workflow"
workflow_json_path: '.github/workflows/json_examples/workflow_lora_api.json'
gcs_bucket_name: 'comfy-ci-results'
google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
output_prefix: 'ComfyUI'
timeout: 50