Skip to content

Commit 34ae0ce

Browse files
committed
update
1 parent 9586818 commit 34ae0ce

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.jenkins/sphinx_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def main() -> None:
77
env = os.environ.copy()
88
for file in files_to_run.split(" "):
99
print(f"Running {file}")
10-
env["GALLERY_PATTERN"] = file
10+
env["RUN_ONLY"] = file
1111
subprocess.check_output(["make", "html"], env=env)
1212

1313

conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ def reset_seeds(gallery_conf, fname):
120120
# for a more detailed description of the issue.
121121
sphinx_gallery_conf['ignore_pattern'] = r'/(?!' + re.escape(os.getenv('GALLERY_PATTERN')) + r')[^/]+$'
122122

123+
if os.getenv("RUN_ONLY"):
124+
sphinx_gallery_conf['filename_pattern'] = os.getenv("RUN_ONLY")
125+
123126
for i in range(len(sphinx_gallery_conf['examples_dirs'])):
124127
gallery_dir = sphinx_gallery_conf['gallery_dirs'][i]
125128
source_dir = sphinx_gallery_conf['examples_dirs'][i]

0 commit comments

Comments
 (0)