merlemcdurrrmott commited on
Commit
74bda7b
·
verified ·
1 Parent(s): 87829d6

Upload .github/workflows/pullrequest-ci-run.yml with huggingface_hub

Browse files
.github/workflows/pullrequest-ci-run.yml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is the GitHub Workflow that drives full-GPU-enabled tests of pull requests to ComfyUI, when the 'Run-CI-Test' label is added
2
+ # Results are reported as checkmarks on the commits, as well as onto https://ci.comfy.org/
3
+ name: Pull Request CI Workflow Runs
4
+ on:
5
+ pull_request_target:
6
+ types: [labeled]
7
+
8
+ jobs:
9
+ pr-test-stable:
10
+ if: ${{ github.event.label.name == 'Run-CI-Test' }}
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ os: [macos, linux, windows]
15
+ python_version: ["3.9", "3.10", "3.11", "3.12"]
16
+ cuda_version: ["12.1"]
17
+ torch_version: ["stable"]
18
+ include:
19
+ - os: macos
20
+ runner_label: [self-hosted, macOS]
21
+ flags: "--use-pytorch-cross-attention"
22
+ - os: linux
23
+ runner_label: [self-hosted, Linux]
24
+ flags: ""
25
+ - os: windows
26
+ runner_label: [self-hosted, Windows]
27
+ flags: ""
28
+ runs-on: ${{ matrix.runner_label }}
29
+ steps:
30
+ - name: Test Workflows
31
+ uses: comfy-org/comfy-action@main
32
+ with:
33
+ os: ${{ matrix.os }}
34
+ python_version: ${{ matrix.python_version }}
35
+ torch_version: ${{ matrix.torch_version }}
36
+ google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
37
+ comfyui_flags: ${{ matrix.flags }}
38
+ use_prior_commit: 'true'
39
+ comment:
40
+ if: ${{ github.event.label.name == 'Run-CI-Test' }}
41
+ runs-on: ubuntu-latest
42
+ permissions:
43
+ pull-requests: write
44
+ steps:
45
+ - uses: actions/github-script@v6
46
+ with:
47
+ script: |
48
+ github.rest.issues.createComment({
49
+ issue_number: context.issue.number,
50
+ owner: context.repo.owner,
51
+ repo: context.repo.repo,
52
+ body: '(Automated Bot Message) CI Tests are running, you can view the results at https://ci.comfy.org/?branch=${{ github.event.pull_request.number }}%2Fmerge'
53
+ })