ci: remove reference to Globals in a workflow

This commit is contained in:
Eugene 2023-05-17 20:26:06 -04:00
parent 20ca9e1fc1
commit 4e7dd7d3f6

View File

@ -105,12 +105,6 @@ jobs:
id: run-pytest id: run-pytest
run: pytest run: pytest
- name: set INVOKEAI_OUTDIR
run: >
python -c
"import os;from invokeai.backend.globals import Globals;OUTDIR=os.path.join(Globals.root,str('outputs'));print(f'INVOKEAI_OUTDIR={OUTDIR}')"
>> ${{ matrix.github-env }}
- name: run invokeai-configure - name: run invokeai-configure
id: run-preload-models id: run-preload-models
env: env:
@ -129,6 +123,7 @@ jobs:
HF_HUB_OFFLINE: 1 HF_HUB_OFFLINE: 1
HF_DATASETS_OFFLINE: 1 HF_DATASETS_OFFLINE: 1
TRANSFORMERS_OFFLINE: 1 TRANSFORMERS_OFFLINE: 1
INVOKEAI_OUTDIR: ${{ github.workspace }}/results
run: > run: >
invokeai invokeai
--no-patchmatch --no-patchmatch
@ -140,6 +135,8 @@ jobs:
- name: Archive results - name: Archive results
id: archive-results id: archive-results
env:
INVOKEAI_OUTDIR: ${{ github.workspace }}/results
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: results name: results