-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (86 loc) · 2.5 KB
/
test-workflows-with-manual-input.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Test ComfyUI Workflows Manual
on:
workflow_dispatch:
inputs:
os:
description: 'Operating System'
required: true
default: 'macos'
type: choice
options:
- macos
- linux
- win
runner_label:
description: 'Runner Label'
required: false
default: 'self-hosted'
type: string
python_version:
description: 'Python Version'
required: true
default: '3.9'
type: choice
options:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- other
python_version_number:
description: 'Specify your own Python Version Number, e.g. 3.9.12'
required: false
default: '3.9'
type: string
cuda_version:
description: 'CUDA Version, currently only 12.1 is supported'
required: true
default: '12.1'
type: choice
options:
- '12.1'
torch_version:
description: 'Torch Version'
required: true
default: 'stable'
type: choice
options:
- stable
- preview
- other
torch_version_number:
description: 'Torch Version Number'
required: false
default: '2.3.1'
type: string
comfyui_flags:
description: 'ComfyUI Flags'
required: false
default: '--force-fp16'
type: string
workflow_filenames:
description: 'Workflow Filenames'
required: false
default: 'default.json,lora.json'
type: string
workflow_raw_json:
description: 'Workflow Raw JSON (Not yet supported)'
required: false
default: ''
type: string
jobs:
test-default-workflow:
runs-on: ${{ inputs.runner_label }}
steps:
- name: Test Default Workflow
uses: comfy-org/comfy-action@main
with:
os: ${{ inputs.os }}
python_version: ${{ (contains(inputs.python_version, "other") && inputs.python_version_number != '' ) && inputs.python_version_number || inputs.python_version}}
cuda_version: ${{ inputs.cuda_version }}
torch_version: ${{ (contains(inputs.torch_version, "other") && inputs.torch_version_number != '' ) && inputs.torch_version_number || inputs.torch_version}}
workflow_filenames: "default.json,lora.json"
workflow_raw_json: ${{ inputs.workflow_raw_json }}
google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
timeout: 50