From 81d174e2cfda8f0edb2856523f3ce719e1a29444 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sun, 25 Feb 2024 15:02:13 -0600 Subject: [PATCH] link workflows, skip LFS clone --- .woodpecker/.build-api-3-10.yaml | 5 +++++ .woodpecker/.build-oci-cuda.yaml | 9 +++++---- api/tests/test_diffusers/test_run.py | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.woodpecker/.build-api-3-10.yaml b/.woodpecker/.build-api-3-10.yaml index 9193b9a7..f994a854 100644 --- a/.woodpecker/.build-api-3-10.yaml +++ b/.woodpecker/.build-api-3-10.yaml @@ -1,3 +1,8 @@ +clone: + git: + settings: + lfs: false + steps: - name: build image: docker.io/python:3.10 diff --git a/.woodpecker/.build-oci-cuda.yaml b/.woodpecker/.build-oci-cuda.yaml index d3dbdee1..35bc171c 100644 --- a/.woodpecker/.build-oci-cuda.yaml +++ b/.woodpecker/.build-oci-cuda.yaml @@ -1,3 +1,6 @@ +depends_on: + - build-api-3-10 + steps: - name: build image: docker.io/docker:20.10 @@ -5,7 +8,5 @@ steps: - mkdir ${HOME}/.docker - echo "${DOCKER_SECRET}" | base64 -d > ${HOME}/.docker/config.json - ../common/scripts/image-build.sh --push - -services: - - name: dind - image: docker.io/docker:20.10-dind + volumes: + - /var/run/docker.sock:/var/run/docker.sock diff --git a/api/tests/test_diffusers/test_run.py b/api/tests/test_diffusers/test_run.py index ffea3dc1..ae3ffdb2 100644 --- a/api/tests/test_diffusers/test_run.py +++ b/api/tests/test_diffusers/test_run.py @@ -90,7 +90,7 @@ class TestTxt2ImgPipeline(unittest.TestCase): self.assertTrue(path.exists("../outputs/test-txt2img-basic_0.png")) - with Image.open("../outputs/test-txt2img-basic.png") as output: + with Image.open("../outputs/test-txt2img-basic_0.png") as output: self.assertEqual(output.size, (256, 256)) # TODO: test contents of image