mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
use sd-model link from matrix
this enables running tests with diffferent models
This commit is contained in:
parent
2ecdfca52f
commit
104466f5c0
6
.github/workflows/test-invoke-conda.yml
vendored
6
.github/workflows/test-invoke-conda.yml
vendored
@ -19,9 +19,11 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
environment-file: environment.yml
|
environment-file: environment.yml
|
||||||
default-shell: bash -l {0}
|
default-shell: bash -l {0}
|
||||||
|
stable-diffusion-model: https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
environment-file: environment-mac.yml
|
environment-file: environment-mac.yml
|
||||||
default-shell: bash -l {0}
|
default-shell: bash -l {0}
|
||||||
|
stable-diffusion-model: https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt
|
||||||
name: Test invoke.py on ${{ matrix.os }} with conda
|
name: Test invoke.py on ${{ matrix.os }} with conda
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
defaults:
|
defaults:
|
||||||
@ -57,7 +59,7 @@ jobs:
|
|||||||
id: cache-sd-v1-4
|
id: cache-sd-v1-4
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
cache-name: cache-sd-v1-4
|
cache-name: cache-sd-${{ matrix.stable-diffusion-model }}
|
||||||
with:
|
with:
|
||||||
path: models/ldm/stable-diffusion-v1/model.ckpt
|
path: models/ldm/stable-diffusion-v1/model.ckpt
|
||||||
key: ${{ env.cache-name }}
|
key: ${{ env.cache-name }}
|
||||||
@ -71,7 +73,7 @@ jobs:
|
|||||||
[[ -r models/ldm/stable-diffusion-v1/model.ckpt ]] \
|
[[ -r models/ldm/stable-diffusion-v1/model.ckpt ]] \
|
||||||
|| curl --user "${{ secrets.HUGGINGFACE_TOKEN }}" \
|
|| curl --user "${{ secrets.HUGGINGFACE_TOKEN }}" \
|
||||||
-o models/ldm/stable-diffusion-v1/model.ckpt \
|
-o models/ldm/stable-diffusion-v1/model.ckpt \
|
||||||
-O -L https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt
|
-O -L ${{ matrix.stable-diffusion-model }}
|
||||||
|
|
||||||
- name: Activate Conda Env
|
- name: Activate Conda Env
|
||||||
uses: conda-incubator/setup-miniconda@v2
|
uses: conda-incubator/setup-miniconda@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user