Skip to content

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

.github/workflows/test-workflows.yaml

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

name: Test ComfyUI Example Workflows
on:
push:
branches:
- mirror
workflow_dispatch:
inputs:
branch:
description: 'Branch to run the workflow on'
required: true
default: 'mirror'
jobs:
test-default-workflow:
if: >-
(github.event_name == 'workflow_dispatch') ||
(github.event.review.state == 'approved')
strategy:
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: drip-art/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: drip-art/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