Skip to content

Commit 550fa5f

Browse files
authored
Organize app examples (#17045)
* move * init files * reset change * missed * more * relative path * e2e tests * update checkgroup * reference * update app_*
1 parent 5d58736 commit 550fa5f

File tree

101 files changed

+49
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+49
-47
lines changed

.azure/app-cloud-e2e.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pr:
3636
- "src/lightning/__version__.py"
3737
- "src/lightning/app/**"
3838
- "src/lightning_app/*"
39+
- "examples/app/**"
3940
- "requirements/app/**"
4041
- "tests/integrations_app/**"
4142
- "setup.py"
@@ -163,14 +164,14 @@ jobs:
163164
# This test is very important to test the main user story of lightning app.
164165
# It also e2e tests running on cloud without installing dependencies.
165166
- bash: |
166-
rm -rf examples/lightning-quick-start || true
167-
git clone https://github.com/Lightning-AI/lightning-quick-start examples/lightning-quick-start
167+
rm -rf examples/app/lightning-quick-start || true
168+
git clone https://github.com/Lightning-AI/lightning-quick-start examples/app/lightning-quick-start
168169
condition: eq(variables['name'], 'quick_start')
169170
displayName: 'Clone Quick start Repo'
170171
171172
- bash: |
172-
rm -rf examples/app_template_react_ui || true
173-
git clone https://github.com/Lightning-AI/lightning-template-react examples/app_template_react_ui
173+
rm -rf examples/app/template_react_ui || true
174+
git clone https://github.com/Lightning-AI/lightning-template-react examples/app/template_react_ui
174175
condition: eq(variables['name'], 'template_react_ui')
175176
displayName: 'Clone Template React UI Repo'
176177
@@ -186,7 +187,7 @@ jobs:
186187
displayName: 'List pip dependency'
187188

188189
- bash: |
189-
ls -l examples/$(TEST_APP_NAME)
190+
ls -l examples/app/$(TEST_APP_NAME)
190191
echo ${TEST_FILE}
191192
python -m pytest ${TEST_FILE}::test_$(TEST_APP_NAME)_example_cloud \
192193
--timeout=540 --capture=no -v --color=yes

.github/checkgroup.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ subprojects:
296296
- "src/lightning_app/*"
297297
- "tests/integrations_app/**"
298298
- "!tests/integrations_app/flagship/**"
299-
- "examples/app_*/**"
299+
- "examples/app/**"
300300
- "requirements/app/**"
301301
- "setup.py"
302302
- "!requirements/*/docs.txt"
@@ -348,6 +348,7 @@ subprojects:
348348
- "src/lightning/__version__.py"
349349
- "src/lightning/app/**"
350350
- "src/lightning_app/*"
351+
- "examples/app/**"
351352
- "requirements/app/**"
352353
- "tests/integrations_app/**"
353354
- "!tests/integrations_app/flagship/**"

.github/labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ app:
44
- 'tests/tests_app/**'
55
- 'tests/integrations_app/**'
66
- 'tests/integrations_app_examples/**'
7-
- 'examples/app_*/**'
7+
- 'examples/app/**'
88
- 'docs/source-app/**'
99
- 'requirements/app/**'
1010

@@ -13,7 +13,7 @@ pl:
1313
- "src/pytorch_lightning/*"
1414
- 'tests/tests_pytorch/**'
1515
- 'tests/legacy/**'
16-
- 'examples/pl_*/**'
16+
- 'examples/pytorch/**'
1717
- 'docs/source-pytorch/**'
1818
- 'requirements/pytorch/**'
1919

.github/workflows/ci-examples-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- "src/lightning_app/*"
1515
- "tests/integrations_app/**"
1616
- "!tests/integrations_app/flagship/**"
17-
- "examples/app_*/**"
17+
- "examples/app/**"
1818
- "requirements/app/**"
1919
- "setup.py"
2020
- "!requirements/*/docs.txt"

docs/source-app/examples/dag/dag_from_scratch.rst

Lines changed: 3 additions & 3 deletions

docs/source-app/glossary/storage/drive_content.rst

Lines changed: 1 addition & 1 deletion

docs/source-app/glossary/storage/drive_content_old.rst

Lines changed: 1 addition & 1 deletion

docs/source-app/levels/basic/hello_components/run_ptl_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# app.py
2-
# !curl https://raw.githubusercontent.com/Lightning-AI/lightning/master/examples/app_multi_node/pl_boring_script.py -o pl_boring_script.py
2+
# !curl https://raw.githubusercontent.com/Lightning-AI/lightning/master/examples/app/multi_node/pl_boring_script.py -o pl_boring_script.py
33
import lightning as L
44
from lightning.app.components.training import LightningTrainerScript
55

docs/source-app/moving_to_the_cloud.rst

Lines changed: 5 additions & 5 deletions
File renamed without changes.

0 commit comments

Comments
 (0)