docs: update ref to latest tutorials & fix CI trigger (#18787)

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>
This commit is contained in:
PL Ghost 2023-10-13 17:50:01 +02:00 committed by GitHub
parent a2377e9d87
commit 23064294c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 18 deletions

View File

@ -121,6 +121,7 @@ subprojects:
- "src/lightning/pytorch/**"
- "src/pytorch_lightning/*"
- "docs/source-pytorch/**"
- "_notebooks"
- ".actions/*"
- ".github/workflows/docs-build.yml"
- "requirements/docs.txt"

View File

@ -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

View File

@ -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
@ -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

@ -1 +1 @@
Subproject commit 70821217ca0db0280af537002839dbb340f77d68
Subproject commit f3985b19ac0ebf38248b785710eac4adc63b816e

View File

@ -70,20 +70,12 @@ if _COPY_NOTEBOOKS:
_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)