mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix test-invoke-conda
- copy required conda environment yaml - use environment.yml - I use cp instead of ln since would be compatible for windows runners
This commit is contained in:
parent
a5719aabf8
commit
92abc00f16
7
.github/workflows/test-invoke-conda.yml
vendored
7
.github/workflows/test-invoke-conda.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
|||||||
- macOS-12
|
- macOS-12
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
environment-file: environment.yml
|
environment-file: environment-lin-cuda.yml
|
||||||
default-shell: bash -l {0}
|
default-shell: bash -l {0}
|
||||||
- os: macOS-12
|
- os: macOS-12
|
||||||
environment-file: environment-mac.yml
|
environment-file: environment-mac.yml
|
||||||
@ -49,6 +49,9 @@ jobs:
|
|||||||
- name: create models.yaml from example
|
- name: create models.yaml from example
|
||||||
run: cp configs/models.yaml.example configs/models.yaml
|
run: cp configs/models.yaml.example configs/models.yaml
|
||||||
|
|
||||||
|
- name: create environment.yml
|
||||||
|
run: cp environments-and-requirements/${{ matrix.environment-file }} environment.yml
|
||||||
|
|
||||||
- name: Use cached conda packages
|
- name: Use cached conda packages
|
||||||
id: use-cached-conda-packages
|
id: use-cached-conda-packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -61,7 +64,7 @@ jobs:
|
|||||||
uses: conda-incubator/setup-miniconda@v2
|
uses: conda-incubator/setup-miniconda@v2
|
||||||
with:
|
with:
|
||||||
activate-environment: ${{ env.CONDA_ENV_NAME }}
|
activate-environment: ${{ env.CONDA_ENV_NAME }}
|
||||||
environment-file: ${{ matrix.environment-file }}
|
environment-file: environment.yml
|
||||||
miniconda-version: latest
|
miniconda-version: latest
|
||||||
|
|
||||||
- name: set test prompt to main branch validation
|
- name: set test prompt to main branch validation
|
||||||
|
Loading…
Reference in New Issue
Block a user