ci: adding Muse app (#16392)

This commit is contained in:
Jirka Borovec 2023-01-17 20:07:24 +09:00 committed by GitHub
parent e61bead324
commit a9a6365e8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 12 deletions

View File

@ -169,14 +169,14 @@ jobs:
condition: eq(variables['name'], 'template_react_ui')
displayName: 'Clone Template React UI Repo'
- bash: pip install -q -r .actions/requirements.txt
displayName: 'Install assistant dependencies'
# Fix imports to use `lightning` instead of `lightning_app` since we install lightning only ATM
# TODO: fixme when installing `lightning_app` as well
- bash: |
python .actions/assistant.py copy_replace_imports --source_dir="./examples" --source_import="lightning_app" --target_import="lightning.app"
python .actions/assistant.py copy_replace_imports --source_dir="./tests" --source_import="lightning_app" --target_import="lightning.app"
pip install -q -r .actions/requirements.txt
python .actions/assistant.py copy_replace_imports \
--source_dir="./examples" --source_import="lightning_app" --target_import="lightning.app"
python .actions/assistant.py copy_replace_imports \
--source_dir="./tests" --source_import="lightning_app" --target_import="lightning.app"
displayName: 'Adjust examples'
- bash: pip --version && pip list

View File

@ -41,7 +41,6 @@ jobs:
# TODO:
# - Training Studio
# - Muse
# - Echo
# - StreamLit / Gradio
# - All homepage & docs apps
@ -51,7 +50,10 @@ jobs:
'App: Flashy':
name: "flashy"
repo: "https://github.com/Lightning-AI/LAI-Flashy-App.git"
'App: Jupyter':
'App: Muse':
name: "stable-diffusion"
repo: "https://github.com/Lightning-AI/stable-diffusion-deploy.git"
'Component: Jupyter':
name: "jupyter"
repo: "https://github.com/Lightning-AI/LAI-Jupyter-Component.git"
timeoutInMinutes: "25"
@ -72,14 +74,17 @@ jobs:
- bash: |
whoami
mkdir -p tests/_flagships
mkdir -p $(video_artifact_dir)
mkdir -p $(video_artifact_dir)/$(name)
printf "local id: $(local_id)\n"
python --version
pip --version
displayName: 'Info'
- script: pip install -e .[cloud,test] -f https://download.pytorch.org/whl/cpu/torch_stable.html
displayName: 'Install Lightning & dependencies'
- script: |
pip install -q -r .actions/requirements.txt
python .actions/assistant.py copy_replace_imports \
--source_dir="./tests" --source_import="lightning_app" --target_import="lightning.app"
displayName: 'Adjust testing'
- script: |
pip install playwright
@ -95,7 +100,14 @@ jobs:
pip install -e .
workingDirectory: tests/_flagships/$(name)
condition: eq(variables['name'], 'flashy')
displayName: 'adjust env for Flashy'
displayName: 'adjust env -> Flashy'
- script: |
pip install -e _flagships/$(name)
cp _flagships/$(name)/tests/test_app.py integrations_app/flagship/test_stable-diffusion.py
workingDirectory: tests/
condition: eq(variables['name'], 'stable-diffusion')
displayName: 'adjust env -> Muse'
- script: |
pip install -e _flagships/$(name)
@ -103,7 +115,10 @@ jobs:
cp _flagships/$(name)/tests/test_jupyter_app.py integrations_app/flagship/test_jupyter.py
workingDirectory: tests/
condition: eq(variables['name'], 'jupyter')
displayName: 'adjust env for Jupyter'
displayName: 'adjust env -> Jupyter'
- script: pip install -e .[cloud,test] -f https://download.pytorch.org/whl/cpu/torch_stable.html
displayName: 'Install Lightning & dependencies'
- bash: pip --version && pip list
displayName: 'List pip dependency'

View File

@ -0,0 +1 @@
# This is placeholder and the reals file ATM is being copied from the original repo/project