Skip to content

[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

Merged
merged 15 commits into from
Sep 16, 2022

Conversation

clee2000
Copy link
Contributor

@clee2000 clee2000 commented Sep 9, 2022

Run all python files in the *_source folders.

Make build.sh slightly less verbose

@netlify
Copy link

netlify bot commented Sep 9, 2022

Deploy Preview for pytorch-tutorials-preview ready!

Name Link
🔨 Latest commit b90b5db
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-tutorials-preview/deploys/632393b1df9a300008bd8bb8
😎 Deploy Preview https://deploy-preview-2034--pytorch-tutorials-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@clee2000 clee2000 marked this pull request as ready for review September 12, 2022 19:05
@clee2000 clee2000 changed the title run everything run some previously not run files Sep 12, 2022
@clee2000 clee2000 changed the title run some previously not run files [ci] run some previously not run files Sep 12, 2022
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"
Copy link
Contributor

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 :)

https://linuxize.com/post/bash-functions/

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),
Copy link
Contributor

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?

Copy link
Contributor Author

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

@malfet
Copy link
Contributor

malfet commented Sep 12, 2022

Hmm, wouldn't those renames break consistency?

Copy link
Contributor

@malfet malfet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@clee2000 clee2000 changed the title [ci] run some previously not run files [ci] Run all python files in the *_source folders Sep 14, 2022
@clee2000 clee2000 merged commit b202420 into pytorch:master Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants