Skip to content

Commit

Permalink
docs: update ref to latest tutorials & fix CI trigger (Lightning-AI#1…
Browse files Browse the repository at this point in the history
…8787)

Co-authored-by: Borda <Borda@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
5 people authored Oct 13, 2023
1 parent a2377e9 commit 2306429
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 deletions.
1 change: 1 addition & 0 deletions .github/checkgroup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ subprojects:
- "src/lightning/pytorch/**"
- "src/pytorch_lightning/*"
- "docs/source-pytorch/**"
- "_notebooks"
- ".actions/*"
- ".github/workflows/docs-build.yml"
- "requirements/docs.txt"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ on:
paths:
- ".actions/*"
- ".github/workflows/docs-build.yml"
- "requirements/**"
- "docs/**"
- "_notebooks"
- "requirements/**"
- "src/**"
- "setup.py"
- "pyproject.toml" # includes metadata used in the package creation
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/docs-tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
- name: initial state
run: |
git submodule status
short_sha=$(git submodule status | grep -A 1 _notebooks | cut -c1-8)
# starting from second char as the line starts with +
short_sha=$(git submodule status | grep -A 1 _notebooks | cut -c2-9)
echo "SHA_ACTUAL=$short_sha" >> $GITHUB_ENV
# Skip smudge - We'll download binary files later in a faster batch
git lfs install --skip-smudge
Expand All @@ -41,8 +42,8 @@ jobs:
run: |
git submodule status
git status
short_sha=$(git submodule status | grep -A 1 _notebooks | cut -c1-8)
# starting from second char as the line starts with +
short_sha=$(git submodule status | grep -A 1 _notebooks | cut -c2-9)
echo "SHA_LATEST=$short_sha" >> $GITHUB_ENV
- name: Create Pull Request
Expand Down
2 changes: 1 addition & 1 deletion _notebooks
18 changes: 5 additions & 13 deletions docs/source-pytorch/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,12 @@ def _load_py_module(name: str, location: str) -> ModuleType:
_PATH_HERE,
"notebooks",
patterns=[".", "course_UvA-DL", "lightning_examples"],
# TODO(@aniketmaurya): Complete converting the missing items and add them back
ignore=[
# "course_UvA-DL/13-contrastive-learning",
"lightning_examples/warp-drive",
],
)
# TODO(@aniketmaurya): Complete converting the missing items and add them back
ignore = [
"course_UvA-DL/13-contrastive-learning",
"lightning_examples/augmentation_kornia",
"lightning_examples/finetuning-scheduler",
"lightning_examples/reinforce-learning-DQN",
"lightning_examples/text-transformers",
"lightning_examples/warp-drive",
]
for file in ignore:
file = os.path.join(_PATH_HERE, "notebooks", file)
if os.path.exists(file):
os.remove(file)


os.makedirs(os.path.join(_PATH_HERE, _FOLDER_GENERATED), exist_ok=True)
Expand Down

0 comments on commit 2306429

Please sign in to comment.