From 2c7137d1b881b937fab9142dc039a75fccf4ea27 Mon Sep 17 00:00:00 2001 From: andreasjansson Date: Thu, 5 Jan 2023 23:38:43 +0100 Subject: [PATCH] CI pipeline --- .github/workflows/ci.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..93e3a66 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,18 @@ +name: CI + +on: [push] + +jobs: + test: + name: Test Stable Diffusion + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Install Cog + run: curl -o /usr/local/bin/cog -L "https://github.com/replicate/cog/releases/latest/download/cog_$(uname -s)_$(uname -m)" && chmod +x /usr/local/bin/cog + - name: Cog login" + run: echo "${{ secrets.COG_LOGIN_TOKEN }}" | cog login --token-stdin + - name: Download weights + run: cog run script/download-weights + - name: Push to CI model on Replicate + run: cog push r8.im/replicate/stable-diffusion-ci