name: Test ComfyUI Example Workflows on: issue_comment: types: [created] workflow_dispatch: jobs: test-default-workflow: if: >- (github.event_name == 'workflow_dispatch') || (github.event_name == 'issue_comment' && contains(github.event.comment.body, 'run_test') && contains(fromJson('["WRITE", "MAINTAIN", "ADMIN"]'), github.event.comment.author_association)) 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' gcs_bucket_name: 'comfy-ci-results' google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }} timeout: 50 output_prefix: 'ComfyUI' - 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 output_prefix: 'ComfyUI'