-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[ci] Run all python files in the *_source folders #2034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for pytorch-tutorials-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
for filename in $(find docs/beginner docs/intermediate docs/advanced docs/recipes docs/prototype -name '*.html'); do | ||
file_basename=$(basename $filename .html) | ||
if [[ ! " ${FILES_TO_RUN} " =~ " ${file_basename} " ]]; then | ||
echo "removing $filename" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi, bash scripts can have functions too :)
.jenkins/validate_tutorials_built.py
Outdated
OK_TO_NOT_RUN = [ | ||
"beginner/basics/intro.html", # no code | ||
] | ||
# files not ending in "tutorial.py" are not run by sphinx (see sphinx_gallery_conf in conf.py), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean we don't actually have any tutorials we currently know to be broken?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, or at least i am not aware of them
Hmm, wouldn't those renames break consistency? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Run all python files in the *_source folders.
Make build.sh slightly less verbose