move export behind the tests, upload with artifact

also switch to python between 3.9-3.10 and use conda-forge again
This commit is contained in:
mauwii 2022-10-17 03:27:15 +02:00
parent 5c8dfa38be
commit 00c0e487dd
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB
2 changed files with 7 additions and 5 deletions

View File

@ -97,9 +97,6 @@ jobs:
activate-environment: ${{ env.CONDA_ENV_NAME }}
environment-file: ${{ matrix.environment-file }}
- name: export conda env
run: conda env export --name ${{ env.CONDA_ENV_NAME }}
- name: Use Cached Huggingface and Torch models
id: cache-hugginface-torch
uses: actions/cache@v3
@ -118,10 +115,15 @@ jobs:
run: |
time python scripts/invoke.py \
--from_file ${{ env.TEST_PROMPTS }}
- name: export conda env
run: |
mkdir -p outputs/img-samples
conda env export --name ${{ env.CONDA_ENV_NAME }} > outputs/img-samples/environment-${{ runner.os }}.yml
- name: Archive results
uses: actions/upload-artifact@v3
with:
name: results_${{ matrix.os }}
path: outputs/img-samples

View File

@ -1,9 +1,9 @@
name: invokeai
channels:
- pytorch
- defaults
- conda-forge
dependencies:
- python>=3.10, <3.11
- python>=3.9, <3.10
- pip>=22.2
# pytorch left unpinned