2727 - " release/*"
2828 paths :
2929 include :
30+ - " .actions/**"
3031 - " .azure/app-cloud-e2e.yml"
31- - " requirements/app/**"
3232 - " src/lightning_app/**"
33- - " tests/tests_app/**"
3433 - " examples/app_*/**" # some tests_app tests call examples files
35- - " tests/tests_app_examples/**"
34+ - " requirements/app/**"
35+ - " tests/tests_examples_app/**"
3636 - " setup.py"
37- - " .actions/**"
3837 exclude :
39- - " requirements/app /docs.txt"
38+ - " requirements/* /docs.txt"
4039 - " *.md"
4140 - " **/*.md"
4241
@@ -59,30 +58,42 @@ jobs:
5958 matrix :
6059 ' App: v0_app ' :
6160 name : " v0_app"
61+ dir : " public"
6262 ' App: boring_app ' :
6363 name : " boring_app"
64+ dir : " public"
6465 ' App: template_streamlit_ui ' :
6566 name : " template_streamlit_ui"
67+ dir : " public"
6668 ' App: template_react_ui ' :
6769 name : " template_react_ui"
70+ dir : " public"
6871 # 'App: template_jupyterlab': # TODO: clarify where these files lives
6972 # name: "template_jupyterlab"
70- ' App: idle_timeout ' :
71- name : " idle_timeout"
72- ' App: collect_failures ' :
73- name : " collect_failures"
74- ' App: custom_work_dependencies ' :
75- name : " custom_work_dependencies"
7673 ' App: installation_commands_app ' :
7774 name : " installation_commands_app"
75+ dir : " public"
7876 ' App: drive ' :
7977 name : " drive"
78+ dir : " public"
8079 ' App: payload ' :
8180 name : " payload"
81+ dir : " public"
8282 ' App: commands_and_api ' :
8383 name : " commands_and_api"
84+ dir : " public"
8485 ' App: quick_start ' :
8586 name : " quick_start"
87+ dir : " public"
88+ ' App: idle_timeout ' :
89+ name : " idle_timeout"
90+ dir : " local"
91+ ' App: collect_failures ' :
92+ name : " collect_failures"
93+ dir : " local"
94+ ' App: custom_work_dependencies ' :
95+ name : " custom_work_dependencies"
96+ dir : " local"
8697 timeoutInMinutes : " 20"
8798 cancelTimeoutInMinutes : " 2"
8899 # values: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases?view=azure-devops&tabs=yaml#workspace
@@ -124,7 +135,7 @@ jobs:
124135 # - bash: |
125136 # rm -rf examples/app_template_jupyterlab || true
126137 # git clone https://github.com/Lightning-AI/LAI-lightning-template-jupyterlab-App examples/app_template_jupyterlab
127- # cp examples/app_template_jupyterlab/tests/test_template_jupyterlab.py tests/tests_app_examples /test_template_jupyterlab.py
138+ # cp examples/app_template_jupyterlab/tests/test_template_jupyterlab.py tests/tests_examples_app /test_template_jupyterlab.py
128139 # condition: eq(variables['name'], 'template_jupyterlab')
129140 # displayName: 'Clone Template Jupyter Lab Repo'
130141
@@ -152,15 +163,17 @@ jobs:
152163 - bash : |
153164 mkdir -p ${VIDEO_LOCATION}
154165 ls -l examples/${TEST_APP_NAME}
155- ls -l tests/tests_app_examples
156- python -m pytest tests/tests_app_examples/test_${TEST_APP_NAME}.py::test_${TEST_APP_NAME}_example_cloud --timeout=1200 --capture=no -v --color=yes
166+ ls -l tests/tests_examples_app/public
167+ python -m pytest tests/tests_examples_app/${TEST_APP_FOLDER}/test_${TEST_APP_NAME}.py::test_${TEST_APP_NAME}_example_cloud \
168+ --timeout=1200 --capture=no -v --color=yes
157169 env:
158170 HEADLESS: '1'
159171 PACKAGE_LIGHTNING: '1'
160172 CLOUD: '1'
161173 VIDEO_LOCATION: $(video_artifact_dir)
162174 PR_NUMBER: $(local_id)
163175 TEST_APP_NAME: $(name)
176+ TEST_APP_FOLDER: $(dir)
164177 HAR_LOCATION: './artifacts/hars'
165178 SLOW_MO: '50'
166179 #LAI_USER: $(LAI_USER) # for STAGING
@@ -191,6 +204,7 @@ jobs:
191204 LIGHTNING_CLOUD_URL: $(LIGHTNING_CLOUD_URL_PROD)
192205 PR_NUMBER: $(local_id)
193206 TEST_APP_NAME: $(name)
207+ TEST_APP_FOLDER: $(dir)
194208 # GRID_USER_ID: $(LIGHTNING_USER_ID) # TODO: clarify the meaning
195209 # GRID_USER_KEY: $(LIGHTNING_API_KEY) # TODO: clarify the meaning
196210 # GRID_URL: $(LIGHTNING_CLOUD_URL)
0 commit comments