Skip to content

Commit 8bea72b

Browse files
Bordaethanwharriscarmoccatchatontshu-w
authored
Releasing 1.8.2 [rebase & merge] (#15698)
* chlog update * mypy: ignore mypy serve (#15631) (cherry picked from commit 38f2a91) * Enable Probot CheckGroup v3 (#15622) (cherry picked from commit bd870c6) * [App] Enable state broadcast with MultiNode (#15607) (cherry picked from commit 61c1f69) * [App] Resolve race condition to move ui files (#15398) (cherry picked from commit 2f0c039) * Make sure save_dir can be empty str (#15638) (cherry picked from commit c53dc20) * [App] Resolve bi-directional queue bug (#15642) (cherry picked from commit 0250c19) * Refactor checkgroup to avoid duplicated checks (#15633) Co-authored-by: Akihiro Nitta <[email protected]> Co-authored-by: Jirka Borovec <[email protected]> (cherry picked from commit 1954764) * Delete unused TPU CI files (#15611) Co-authored-by: Akihiro Nitta <[email protected]> Co-authored-by: Jirka Borovec <[email protected]> (cherry picked from commit a3edbec) * Update run_ptl_script.py (cherry picked from commit 4e8cf85) * [App] Accelerate Multi Node Startup Time (#15650) (cherry picked from commit 757413c) * [App] Change app root / config path to be the `app.py` parent directory (#15654) * Change app root / config path to be the `app.py` parent directory * Update CHANGELOG.md * mypy * Fix * Mypy (cherry picked from commit b3281eb) * Add LightningLite to top level imports (#15502) Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Carlos Mocholí <[email protected]> (cherry picked from commit c32c435) * Upgrade GPU CI to PyTorch 1.13 (#15583) Co-authored-by: Carlos Mocholí <[email protected]> Co-authored-by: Jirka <[email protected]> (cherry picked from commit e87c11a) * Prevent artifactual "running from outside your current environment" error (#15647) Prevent warning when shutil.executable returns a symlink Co-authored-by: Luca Antiga <[email protected]> (cherry picked from commit 3248f33) * Fix ddp_spawn -> ddp fallback logic when on LSF cluster (#15657) Co-authored-by: awaelchli <[email protected]> (cherry picked from commit cdb7006) * Include images with the mirror package (#15659) Co-authored-by: Carlos Mocholí <[email protected]> (cherry picked from commit c06ea41) * [App] Rename failed -> error in tables (#15608) Co-authored-by: Raphael Randschau <[email protected]> Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Carlos Mocholí <[email protected]> (cherry picked from commit ca83b50) * Improves the PanelFrontend docs (#14493) Co-authored-by: Marc Skov Madsen <[email protected]> Co-authored-by: thomas chaton <[email protected]> Co-authored-by: Adrian Wälchli <[email protected]> Co-authored-by: Felonious-Spellfire <[email protected]> Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Mansy <[email protected]> (cherry picked from commit 10a4b24) * add title and description to ServeGradio (#15639) * add title and description * update test * apply suggestions Co-authored-by: Adrian Wälchli <[email protected]> (cherry picked from commit f9d906c) * Upgrade CI to PyTorch 1.13 (#15403) Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Akihiro Nitta <[email protected]> Co-authored-by: Carlos Mocholí <[email protected]> Co-authored-by: Adrian Wälchli <[email protected]> (cherry picked from commit 57ac548) * Fixed Import in Docs For Multinode Trainer Name Which does Not Exist (#15663) (cherry picked from commit 23f88cd) * Validate the combination of CloudCompute and BuildConfig (#14929) Co-authored-by: otaj <[email protected]> Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Jirka <[email protected]> (cherry picked from commit e5a865c) * add contributing guide to readme (cherry picked from commit 98af2bb) * Add Python 3.10 badge (#15681) (cherry picked from commit 8f44bb5) * fix(docs/app): broken links in the intermediate/web-ui section (#15691) (cherry picked from commit 4837df4) * Bump google-github-actions/setup-gcloud from 0 to 1 (#15671) Bumps [google-github-actions/setup-gcloud](https://github.com/google-github-actions/setup-gcloud) from 0 to 1. - [Release notes](https://github.com/google-github-actions/setup-gcloud/releases) - [Changelog](https://github.com/google-github-actions/setup-gcloud/blob/main/CHANGELOG.md) - [Commits](google-github-actions/setup-gcloud@v0...v1) --- updated-dependencies: - dependency-name: google-github-actions/setup-gcloud dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit c451288) * Update onnxruntime requirement from <1.13.0 to <1.14.0 in /requirements (#15672) Updates the requirements on [onnxruntime](https://github.com/microsoft/onnxruntime) to permit the latest version. - [Release notes](https://github.com/microsoft/onnxruntime/releases) - [Changelog](https://github.com/microsoft/onnxruntime/blob/main/docs/ReleaseManagement.md) - [Commits](microsoft/onnxruntime@v0.1.4...v1.13.1) --- updated-dependencies: - dependency-name: onnxruntime dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit 7a8e2e9) * Bump google-github-actions/auth from 0 to 1 (#15675) Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 0 to 1. - [Release notes](https://github.com/google-github-actions/auth/releases) - [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md) - [Commits](google-github-actions/auth@v0...v1) --- updated-dependencies: - dependency-name: google-github-actions/auth dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit e93c649) * Docs: Fix import for scikit in XGBoost template (#15693) (cherry picked from commit 9670fa8) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Enable Probot CheckGroup v4 (#15649) (cherry picked from commit 80e7538) * docs 5/n (#15669) * examples * fix few examples * Update pl_multinode.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit 41f1a36) * fix(docs/app/lit_tabs): remove unused app_id, enable run instead (#15702) (cherry picked from commit befd3f6) * [App] Mock missing package imports when launching in the cloud (#15711) Co-authored-by: manskx <[email protected]> (cherry picked from commit f57160b) * Fix catimage import (#15712) (cherry picked from commit ee517f3) * Parse all lines in app file looking for shebangs to run commands. (#15714) fixed command parsing so that all lines in the file are parsed (cherry picked from commit 98bcb3d) * Bump coverage from 6.4.2 to 6.5.0 in /requirements (#15674) Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.4.2 to 6.5.0. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@6.4.2...6.5.0) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit 13eb2a1) * remove unused random_split import from tutorial (#15716) (cherry picked from commit b40ca0e) * Fix typo 'wether' (#15710) (cherry picked from commit 609b258) * releasing 1.8.2 Co-authored-by: Ethan Harris <[email protected]> Co-authored-by: Carlos Mocholí <[email protected]> Co-authored-by: thomas chaton <[email protected]> Co-authored-by: Tianshu Wang <[email protected]> Co-authored-by: William Falcon <[email protected]> Co-authored-by: Adrian Wälchli <[email protected]> Co-authored-by: Luca Antiga <[email protected]> Co-authored-by: Atharva Phatak <[email protected]> Co-authored-by: Luca Furst <[email protected]> Co-authored-by: Marc Skov Madsen <[email protected]> Co-authored-by: Aniket Maurya <[email protected]> Co-authored-by: Rick Izzo <[email protected]> Co-authored-by: edenlightning <[email protected]> Co-authored-by: 罗崚骁(LUO Lingxiao) <[email protected]> Co-authored-by: Yurij Mikhalevich <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nash <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: yiftachbeer <[email protected]> Co-authored-by: dymil <[email protected]>
1 parent 18c587e commit 8bea72b

File tree

109 files changed

+1258
-1078
lines changed

Some content is hidden

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

109 files changed

+1258
-1078
lines changed

.actions/assistant.py

+26-16
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import os
22
import re
3+
import shutil
34
from itertools import chain
5+
from os.path import dirname, isfile
46
from pathlib import Path
5-
from pprint import pprint
67
from typing import Dict, List, Optional, Sequence, Tuple
78

89
import pkg_resources
@@ -65,6 +66,7 @@ def _replace_imports(lines: List[str], mapping: List[Tuple[str, str]]) -> List[s
6566
def copy_replace_imports(
6667
source_dir: str, source_imports: List[str], target_imports: List[str], target_dir: Optional[str] = None
6768
) -> None:
69+
"""Copy package content with import adjustments."""
6870
print(f"Replacing imports: {locals()}")
6971
assert len(source_imports) == len(target_imports), (
7072
"source and target imports must have the same length, "
@@ -75,19 +77,27 @@ def copy_replace_imports(
7577

7678
ls = _retrieve_files(source_dir)
7779
for fp in ls:
78-
if fp.endswith(".py") or not fp.endswith(".pyc"):
79-
with open(fp, encoding="utf-8") as fo:
80-
try:
81-
lines = fo.readlines()
82-
except UnicodeDecodeError:
83-
# a binary file, skip
84-
print(f"Skipped replacing imports for {fp}")
85-
continue
86-
lines = _replace_imports(lines, list(zip(source_imports, target_imports)))
87-
fp_new = fp.replace(source_dir, target_dir)
88-
os.makedirs(os.path.dirname(fp_new), exist_ok=True)
89-
with open(fp_new, "w", encoding="utf-8") as fo:
90-
fo.writelines(lines)
80+
fp_new = fp.replace(source_dir, target_dir)
81+
_, ext = os.path.splitext(fp)
82+
if ext in (".png", ".jpg", ".ico"):
83+
os.makedirs(dirname(fp_new), exist_ok=True)
84+
if not isfile(fp_new):
85+
shutil.copy(fp, fp_new)
86+
continue
87+
elif ext in (".pyc",):
88+
continue
89+
# Try to parse everything else
90+
with open(fp, encoding="utf-8") as fo:
91+
try:
92+
lines = fo.readlines()
93+
except UnicodeDecodeError:
94+
# a binary file, skip
95+
print(f"Skipped replacing imports for {fp}")
96+
continue
97+
lines = _replace_imports(lines, list(zip(source_imports, target_imports)))
98+
os.makedirs(os.path.dirname(fp_new), exist_ok=True)
99+
with open(fp_new, "w", encoding="utf-8") as fo:
100+
fo.writelines(lines)
91101

92102

93103
def create_mirror_package(source_dir: str, package_mapping: Dict[str, str]) -> None:
@@ -129,7 +139,7 @@ def _prune_packages(req_file: str, packages: Sequence[str]) -> None:
129139
req = list(pkg_resources.parse_requirements(ln_))[0]
130140
if req.name not in packages:
131141
final.append(line)
132-
pprint(final)
142+
print(final)
133143
path.write_text("\n".join(final))
134144

135145
@staticmethod
@@ -147,7 +157,7 @@ def replace_oldest_ver(requirement_fnames: Sequence[str] = REQUIREMENT_FILES_ALL
147157
def copy_replace_imports(
148158
source_dir: str, source_import: str, target_import: str, target_dir: Optional[str] = None
149159
) -> None:
150-
"""Recursively replace imports in given folder."""
160+
"""Copy package content with import adjustments."""
151161
source_imports = source_import.strip().split(",")
152162
target_imports = target_import.strip().split(",")
153163
copy_replace_imports(source_dir, source_imports, target_imports, target_dir=target_dir)

.azure/app-cloud-e2e.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,17 @@ pr:
2727
- "release/*"
2828
paths:
2929
include:
30-
- ".azure/app-cloud-e2e.yml"
31-
- "requirements/app/**"
32-
- "src/lightning_app/**"
33-
- "examples/app_*"
34-
- "tests/tests_app_examples/**"
35-
- ".actions/**"
30+
- ".azure/app-cloud-e2e.yml"
31+
- "requirements/app/**"
32+
- "src/lightning_app/**"
33+
- "tests/tests_app/**"
34+
- "examples/app_*/**" # some tests_app tests call examples files
35+
- "tests/tests_app_examples/**"
36+
- "setup.py"
37+
- ".actions/**"
38+
- "!requirements/app/docs.txt"
39+
- "!*.md"
40+
- "!**/*.md"
3641

3742
# variables are automatically exported as environment variables so this will override pip's default cache dir
3843
variables:

.azure/gpu-benchmark.yml

+33-5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ pr:
2121
paths:
2222
include:
2323
- ".azure/gpu-benchmark.yml"
24+
- "tests/tests_pytorch/benchmarks/**"
25+
- "requirements/pytorch/**"
26+
- "!requirements/pytorch/docs.txt"
27+
- "!*.md"
28+
- "!**/*.md"
2429

2530
schedules:
2631
- cron: "0 0 * * *" # At the end of every day
@@ -37,7 +42,7 @@ jobs:
3742
variables:
3843
DEVICES: $( python -c 'print("$(Agent.Name)".split("_")[-1])' )
3944
container:
40-
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.9-torch1.12-cuda11.6.1"
45+
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.9-torch1.13-cuda11.6.1"
4146
options: "--gpus=all --shm-size=32g"
4247
workspace:
4348
clean: all
@@ -47,18 +52,41 @@ jobs:
4752
- bash: |
4853
echo "##vso[task.setvariable variable=CUDA_VISIBLE_DEVICES]$(DEVICES)"
4954
cuda_ver=$(python -c "import torch ; print(''.join(map(str, torch.version.cuda.split('.')[:2])))")
50-
echo "##vso[task.setvariable variable=CUDA_VERSION_MM]$cuda_ver"
5155
echo "##vso[task.setvariable variable=TORCH_URL]https://download.pytorch.org/whl/cu${cuda_ver}/torch_stable.html"
5256
displayName: 'set env. vars'
5357
5458
- bash: |
55-
pip install -e .[strategies] --find-links ${TORCH_URL}
59+
echo $CUDA_VISIBLE_DEVICES
60+
echo $TORCH_URL
61+
lspci | egrep 'VGA|3D'
62+
whereis nvidia
63+
nvidia-smi
64+
which python && which pip
65+
python --version
66+
pip --version
5667
pip list
68+
displayName: 'Image info & NVIDIA'
69+
70+
- bash: |
71+
python .actions/assistant.py requirements_prune_pkgs --packages [horovod,bagua,colossalai] --req_files [requirements/pytorch/strategies.txt]
72+
73+
PYTORCH_VERSION=$(python -c "import torch; print(torch.__version__.split('+')[0])")
74+
python ./requirements/pytorch/adjust-versions.py requirements/pytorch/base.txt ${PYTORCH_VERSION}
75+
displayName: 'Adjust dependencies'
76+
77+
- bash: pip install -e .[dev,strategies,examples] --find-links ${TORCH_URL}
5778
env:
58-
PACKAGE_NAME: pytorch
59-
FREEZE_REQUIREMENTS: 1
79+
PACKAGE_NAME: "pytorch"
80+
FREEZE_REQUIREMENTS: "1"
6081
displayName: 'Install package'
6182

83+
- bash: |
84+
set -e
85+
pip list
86+
python requirements/collect_env_details.py
87+
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu == 2, f'GPU: {mgpu}'"
88+
displayName: 'Env details'
89+
6290
- bash: python -m pytest benchmarks -v --durations=0
6391
env:
6492
PL_RUNNING_BENCHMARKS: "1"

.azure/gpu-tests-lite.yml

+23-10
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@ pr:
2121
paths:
2222
include:
2323
- ".azure/gpu-tests-lite.yml"
24+
- "examples/lite/**"
25+
- "examples/run_lite_examples.sh"
26+
- "tests/tests_lite/run_standalone_*.sh"
27+
- "tests/tests_pytorch/run_standalone_tests.sh" # used by Lite through a symlink
2428
- "requirements/lite/**"
2529
- "src/lightning_lite/**"
2630
- "tests/tests_lite/**"
27-
- "tests/tests_pytorch/run_standalone_tests.sh"
28-
- "tests/tests_lite/run_standalone_tests.sh" # a symlink to the one above
31+
- "setup.cfg" # includes pytest config
2932
- ".actions/**"
33+
- "!requirements/lite/docs.txt"
34+
- "!*.md"
35+
- "!**/*.md"
3036

3137
jobs:
3238
- job: testing
@@ -38,7 +44,7 @@ jobs:
3844
variables:
3945
DEVICES: $( python -c 'print("$(Agent.Name)".split("_")[-1])' )
4046
container:
41-
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.9-torch1.12-cuda11.6.1"
47+
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.9-torch1.13-cuda11.6.1"
4248
# default shm size is 64m. Increase it to avoid:
4349
# 'Error while creating shared memory: unhandled system error, NCCL version 2.7.8'
4450
options: "--gpus=all --shm-size=2gb"
@@ -48,6 +54,14 @@ jobs:
4854

4955
steps:
5056
- bash: |
57+
echo "##vso[task.setvariable variable=CUDA_VISIBLE_DEVICES]$(DEVICES)"
58+
cuda_ver=$(python -c "import torch ; print(''.join(map(str, torch.version.cuda.split('.')[:2])))")
59+
echo "##vso[task.setvariable variable=TORCH_URL]https://download.pytorch.org/whl/cu${cuda_ver}/torch_stable.html"
60+
displayName: 'set env. vars'
61+
62+
- bash: |
63+
echo $CUDA_VISIBLE_DEVICES
64+
echo $TORCH_URL
5165
lspci | egrep 'VGA|3D'
5266
whereis nvidia
5367
nvidia-smi
@@ -58,22 +72,21 @@ jobs:
5872
displayName: 'Image info & NVIDIA'
5973
6074
- bash: |
61-
echo "##vso[task.setvariable variable=CUDA_VISIBLE_DEVICES]$(DEVICES)"
62-
displayName: 'set visible devices'
75+
PYTORCH_VERSION=$(python -c "import torch; print(torch.__version__.split('+')[0])")
76+
python ./requirements/pytorch/adjust-versions.py requirements/lite/base.txt ${PYTORCH_VERSION}
77+
python ./requirements/pytorch/adjust-versions.py requirements/lite/examples.txt ${PYTORCH_VERSION}
78+
displayName: 'Adjust dependencies'
6379
6480
- bash: |
65-
set -e
66-
CUDA_VERSION_MM=$(python -c "import torch ; print(''.join(map(str, torch.version.cuda.split('.')[:2])))")
67-
pip install -e .[dev,strategies] --find-links https://download.pytorch.org/whl/cu${CUDA_VERSION_MM}/torch_stable.html
68-
pip list
81+
pip install -e .[dev,strategies,examples] --find-links ${TORCH_URL}
6982
env:
7083
PACKAGE_NAME: "lite"
7184
FREEZE_REQUIREMENTS: "1"
7285
displayName: 'Install package & dependencies'
7386
7487
- bash: |
7588
set -e
76-
echo $CUDA_VISIBLE_DEVICES
89+
pip list
7790
python requirements/collect_env_details.py
7891
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu == 2, f'GPU: {mgpu}'"
7992
displayName: 'Env details'

.azure/gpu-tests-pytorch.yml

+16-7
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,20 @@ pr:
3737
- "requirements/lite/**"
3838
- "src/lightning_lite/**"
3939
- ".actions/**"
40+
- "!requirements/**/docs.txt"
41+
- "!*.md"
42+
- "!**/*.md"
4043

4144
jobs:
4245
- job: testing
4346
strategy:
4447
matrix:
45-
# TODO: package parametrization
46-
'PyTorch - stable':
48+
'PyTorch & strategies': # this uses torch 1.12 as not all strategies support 1.13 yet
4749
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.9-torch1.12-cuda11.6.1"
50+
scope: "strategies"
51+
'PyTorch - latest':
52+
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.9-torch1.13-cuda11.6.1"
53+
scope: ""
4854
# how long to run the job before automatically cancelling
4955
timeoutInMinutes: "80"
5056
# how much time to give 'run always even if cancelled tasks' before stopping them
@@ -93,11 +99,11 @@ jobs:
9399
python ./requirements/pytorch/adjust-versions.py requirements/pytorch/examples.txt ${PYTORCH_VERSION}
94100
displayName: 'Adjust dependencies'
95101
96-
- bash: pip install -e .[strategies] -r requirements/pytorch/devel.txt -r requirements/pytorch/examples.txt --find-links ${TORCH_URL}
102+
- bash: pip install -e .[dev,examples] --find-links ${TORCH_URL}
97103
env:
98104
PACKAGE_NAME: "pytorch"
99105
FREEZE_REQUIREMENTS: "1"
100-
displayName: 'Install package'
106+
displayName: 'Install package & extras'
101107

102108
- bash: |
103109
set -e
@@ -109,14 +115,17 @@ jobs:
109115
CUDA_VERSION_COLOSSALAI=$(python -c "print([ver for ver in [11.3, 11.1] if $CUDA_VERSION_MM_COLOSSALAI >= ver][0])")
110116
pip install "colossalai==0.1.10+torch${PYTORCH_VERSION_COLOSSALAI}cu${CUDA_VERSION_COLOSSALAI}" --find-links https://release.colossalai.org
111117
112-
pip list
113-
displayName: 'Install dependencies'
118+
pip install -r requirements/pytorch/strategies.txt --find-links ${TORCH_URL}
119+
120+
python requirements/pytorch/check-avail-strategies.py
121+
condition: eq(variables['scope'], 'strategies')
122+
displayName: 'Install strategies'
114123
115124
- bash: |
116125
set -e
126+
pip list
117127
python requirements/collect_env_details.py
118128
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu == 2, f'GPU: {mgpu}'"
119-
python requirements/pytorch/check-avail-strategies.py
120129
python requirements/pytorch/check-avail-extras.py
121130
displayName: 'Env details'
122131

.azure/hpu-tests.yml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ pr:
2626
- "tests/tests_pytorch/**"
2727
- "setup.cfg" # includes pytest config
2828
- ".actions/**"
29+
- "!requirements/**/docs.txt"
30+
- "!*.md"
31+
- "!**/*.md"
2932

3033
jobs:
3134
- job: testing

.azure/ipu-tests.yml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ pr:
2323
- "tests/tests_pytorch/**"
2424
- "setup.cfg" # includes pytest config
2525
- ".actions/**"
26+
- "!requirements/**/docs.txt"
27+
- "!*.md"
28+
- "!**/*.md"
2629

2730
variables:
2831
- name: poplar_sdk

0 commit comments

Comments
 (0)