-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (39 loc) · 1.36 KB
/
Copy pathdocker-tests.yml
File metadata and controls
46 lines (39 loc) · 1.36 KB
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
name: docker-tests
# Builds the ComfyUI + ComfyUI-OCIO image and runs the pack's tests inside it. GitHub runners are
# amd64; the Dockerfile is arch-agnostic (same file builds native arm64 on an Apple-silicon Mac).
on:
push:
branches: [main, docker-comfyui-test-env]
pull_request:
workflow_dispatch:
jobs:
docker-tests:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Build image (with layer cache)
uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile
load: true
tags: comfyui-ocio:ci
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Standalone tests + node-registration smoke
run: docker run --rm comfyui-ocio:ci bash custom_nodes/ComfyUI-OCIO/docker/run_tests.sh
- name: Marcie round-trip color-accuracy test
run: |
mkdir -p data
docker run --rm -v "${{ github.workspace }}/data:/data" \
comfyui-ocio:ci python custom_nodes/ComfyUI-OCIO/docker/roundtrip_test.py
- name: Upload round-trip outputs
if: always()
uses: actions/upload-artifact@v4
with:
name: roundtrip-output
path: data/
if-no-files-found: ignore