name: Test ComfyUI Example Workflows on: pull_request: branches: - master - dev paths-ignore: - 'tests/**' - 'tests-ui/**' push: paths-ignore: - 'tests/**' - 'tests-ui/**' workflow_dispatch: jobs: test-default-workflow: strategy: matrix: os: [macos, linux] include: - os: macos runner_label: [self-hosted, m2] - os: linux cuda_version: 12.1 runner_label: [self-hosted, Linux, nvidia-tesla-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' 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' timeout: 50