Skip to content

Commit a9a6365

Browse files
authored
ci: adding Muse app (#16392)
1 parent e61bead commit a9a6365

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed

.azure/app-cloud-e2e.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ jobs:
169169
condition: eq(variables['name'], 'template_react_ui')
170170
displayName: 'Clone Template React UI Repo'
171171
172-
- bash: pip install -q -r .actions/requirements.txt
173-
displayName: 'Install assistant dependencies'
174-
175172
# Fix imports to use `lightning` instead of `lightning_app` since we install lightning only ATM
176173
# TODO: fixme when installing `lightning_app` as well
177174
- bash: |
178-
python .actions/assistant.py copy_replace_imports --source_dir="./examples" --source_import="lightning_app" --target_import="lightning.app"
179-
python .actions/assistant.py copy_replace_imports --source_dir="./tests" --source_import="lightning_app" --target_import="lightning.app"
175+
pip install -q -r .actions/requirements.txt
176+
python .actions/assistant.py copy_replace_imports \
177+
--source_dir="./examples" --source_import="lightning_app" --target_import="lightning.app"
178+
python .actions/assistant.py copy_replace_imports \
179+
--source_dir="./tests" --source_import="lightning_app" --target_import="lightning.app"
180180
displayName: 'Adjust examples'
181181
182182
- bash: pip --version && pip list

.azure/app-flagships.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141

4242
# TODO:
4343
# - Training Studio
44-
# - Muse
4544
# - Echo
4645
# - StreamLit / Gradio
4746
# - All homepage & docs apps
@@ -51,7 +50,10 @@ jobs:
5150
'App: Flashy':
5251
name: "flashy"
5352
repo: "https://github.com/Lightning-AI/LAI-Flashy-App.git"
54-
'App: Jupyter':
53+
'App: Muse':
54+
name: "stable-diffusion"
55+
repo: "https://github.com/Lightning-AI/stable-diffusion-deploy.git"
56+
'Component: Jupyter':
5557
name: "jupyter"
5658
repo: "https://github.com/Lightning-AI/LAI-Jupyter-Component.git"
5759
timeoutInMinutes: "25"
@@ -72,14 +74,17 @@ jobs:
7274
- bash: |
7375
whoami
7476
mkdir -p tests/_flagships
75-
mkdir -p $(video_artifact_dir)
77+
mkdir -p $(video_artifact_dir)/$(name)
7678
printf "local id: $(local_id)\n"
7779
python --version
7880
pip --version
7981
displayName: 'Info'
8082
81-
- script: pip install -e .[cloud,test] -f https://download.pytorch.org/whl/cpu/torch_stable.html
82-
displayName: 'Install Lightning & dependencies'
83+
- script: |
84+
pip install -q -r .actions/requirements.txt
85+
python .actions/assistant.py copy_replace_imports \
86+
--source_dir="./tests" --source_import="lightning_app" --target_import="lightning.app"
87+
displayName: 'Adjust testing'
8388
8489
- script: |
8590
pip install playwright
@@ -95,15 +100,25 @@ jobs:
95100
pip install -e .
96101
workingDirectory: tests/_flagships/$(name)
97102
condition: eq(variables['name'], 'flashy')
98-
displayName: 'adjust env for Flashy'
103+
displayName: 'adjust env -> Flashy'
104+
105+
- script: |
106+
pip install -e _flagships/$(name)
107+
cp _flagships/$(name)/tests/test_app.py integrations_app/flagship/test_stable-diffusion.py
108+
workingDirectory: tests/
109+
condition: eq(variables['name'], 'stable-diffusion')
110+
displayName: 'adjust env -> Muse'
99111
100112
- script: |
101113
pip install -e _flagships/$(name)
102114
# pip install -r _flagships/$(name)/tests/requirements-dev.txt
103115
cp _flagships/$(name)/tests/test_jupyter_app.py integrations_app/flagship/test_jupyter.py
104116
workingDirectory: tests/
105117
condition: eq(variables['name'], 'jupyter')
106-
displayName: 'adjust env for Jupyter'
118+
displayName: 'adjust env -> Jupyter'
119+
120+
- script: pip install -e .[cloud,test] -f https://download.pytorch.org/whl/cpu/torch_stable.html
121+
displayName: 'Install Lightning & dependencies'
107122

108123
- bash: pip --version && pip list
109124
displayName: 'List pip dependency'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This is placeholder and the reals file ATM is being copied from the original repo/project

0 commit comments

Comments
 (0)