mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
use very short validation for Pull Requests
This commit is contained in:
parent
97b26f3de2
commit
b39029521b
27
.github/workflows/test-invoke-conda.yml
vendored
27
.github/workflows/test-invoke-conda.yml
vendored
@ -4,6 +4,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
- 'development'
|
- 'development'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
- 'development'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
os_matrix:
|
os_matrix:
|
||||||
@ -33,13 +37,20 @@ jobs:
|
|||||||
auto-update-conda: false
|
auto-update-conda: false
|
||||||
miniconda-version: latest
|
miniconda-version: latest
|
||||||
|
|
||||||
- name: set environment
|
- name: set test prompt to main branch validation
|
||||||
run: |
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
[[ "$GITHUB_REF" == 'refs/heads/main' ]] \
|
run: echo "TEST_PROMPTS=tests/preflight_prompts.txt" >> $GITHUB_ENV
|
||||||
&& echo "TEST_PROMPTS=tests/preflight_prompts.txt" >> $GITHUB_ENV \
|
|
||||||
|| echo "TEST_PROMPTS=tests/dev_prompts.txt" >> $GITHUB_ENV
|
- name: set test prompt to development branch validation
|
||||||
echo "CONDA_ROOT=$CONDA" >> $GITHUB_ENV
|
if: ${{ github.ref == 'refs/heads/development' }}
|
||||||
echo "CONDA_ENV_NAME=invokeai" >> $GITHUB_ENV
|
run: echo "TEST_PROMPTS=tests/dev_prompts.txt" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: set test prompt to Pull Request validation
|
||||||
|
if: ${{ github.ref != "refs/heads/main" && github.ref != 'refs/heads/development' }}
|
||||||
|
run: echo "TEST_PROMPTS=tests/pr_prompt.txt" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: set conda environment name
|
||||||
|
run: echo "CONDA_ENV_NAME=invokeai" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Use Cached Stable Diffusion v1.4 Model
|
- name: Use Cached Stable Diffusion v1.4 Model
|
||||||
id: cache-sd-v1-4
|
id: cache-sd-v1-4
|
||||||
@ -65,7 +76,7 @@ jobs:
|
|||||||
cache-name: cache-conda-env-${{ env.CONDA_ENV_NAME }}
|
cache-name: cache-conda-env-${{ env.CONDA_ENV_NAME }}
|
||||||
conda-env-file: ${{ matrix.environment-file }}
|
conda-env-file: ${{ matrix.environment-file }}
|
||||||
with:
|
with:
|
||||||
path: ${{ env.CONDA_ROOT }}/envs/${{ env.CONDA_ENV_NAME }}
|
path: ${{ env.CONDA }}/envs/${{ env.CONDA_ENV_NAME }}
|
||||||
key: ${{ env.cache-name }}
|
key: ${{ env.cache-name }}
|
||||||
restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }}
|
restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }}
|
||||||
|
|
||||||
|
1
tests/pr_prompt.txt
Normal file
1
tests/pr_prompt.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
banana sushi -Ak_lms -S42 -s10
|
Loading…
Reference in New Issue
Block a user