mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Merge branch 'dev/installer' of github.com:invoke-ai/InvokeAI into dev/installer
This commit is contained in:
commit
c13e11a264
10
.github/workflows/test-invoke-pip.yml
vendored
10
.github/workflows/test-invoke-pip.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version:
|
python-version:
|
||||||
# - '3.9'
|
- '3.9'
|
||||||
- '3.10'
|
- '3.10'
|
||||||
pytorch:
|
pytorch:
|
||||||
- linux-cuda-11_6
|
- linux-cuda-11_6
|
||||||
@ -93,9 +93,15 @@ jobs:
|
|||||||
run: echo "TEST_PROMPTS=tests/validate_pr_prompt.txt" >> ${{ matrix.github-env }}
|
run: echo "TEST_PROMPTS=tests/validate_pr_prompt.txt" >> ${{ matrix.github-env }}
|
||||||
|
|
||||||
- name: install invokeai
|
- name: install invokeai
|
||||||
run: pip3 install --use-pep517 -e .
|
|
||||||
env:
|
env:
|
||||||
PIP_EXTRA_INDEX_URL: ${{ matrix.extra-index-url }}
|
PIP_EXTRA_INDEX_URL: ${{ matrix.extra-index-url }}
|
||||||
|
run: >
|
||||||
|
pip3 install
|
||||||
|
--use-pep517
|
||||||
|
--editable=".[test]"
|
||||||
|
|
||||||
|
- name: run pytest
|
||||||
|
run: pytest
|
||||||
|
|
||||||
- name: Use Cached models
|
- name: Use Cached models
|
||||||
id: cache-sd-model
|
id: cache-sd-model
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
|
import pathlib
|
||||||
import unittest
|
import unittest
|
||||||
from os import path as osp
|
from os import path as osp
|
||||||
import pathlib
|
|
||||||
|
|
||||||
import invokeai.frontend.dist as frontend
|
|
||||||
import invokeai.configs as configs
|
import invokeai.configs as configs
|
||||||
|
import invokeai.frontend.dist as frontend
|
||||||
|
|
||||||
|
|
||||||
def get_frontend_path() -> pathlib.Path:
|
def get_frontend_path() -> pathlib.Path:
|
||||||
"""Get the path of the frontend"""
|
"""Get the path of the frontend dist folder"""
|
||||||
return pathlib.Path(frontend.__path__[0])
|
return pathlib.Path(frontend.__path__[0])
|
||||||
|
|
||||||
|
|
||||||
@ -18,14 +18,12 @@ def get_configs_path() -> pathlib.Path:
|
|||||||
|
|
||||||
def test_frontend_path():
|
def test_frontend_path():
|
||||||
"""Test that the frontend path is correct"""
|
"""Test that the frontend path is correct"""
|
||||||
# test path of the frontend
|
|
||||||
TEST_PATH = str(get_frontend_path())
|
TEST_PATH = str(get_frontend_path())
|
||||||
assert TEST_PATH.endswith(osp.join("invokeai", "frontend", "dist"))
|
assert TEST_PATH.endswith(osp.join("invokeai", "frontend", "dist"))
|
||||||
|
|
||||||
|
|
||||||
def test_configs_path():
|
def test_configs_path():
|
||||||
"""Test that the frontend path is correct"""
|
"""Test that the configs path is correct"""
|
||||||
# test path of the frontend
|
|
||||||
TEST_PATH = str(get_configs_path())
|
TEST_PATH = str(get_configs_path())
|
||||||
assert TEST_PATH.endswith(osp.join("invokeai", "configs"))
|
assert TEST_PATH.endswith(osp.join("invokeai", "configs"))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user