-
Notifications
You must be signed in to change notification settings - Fork 207
ENH: Add run_stale_examples config var #759
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
Needed to move nightly to allowed failures until NumPy has 3.10 pre wheels. Added a 3.8 build (overdue) but no 3.9 until NumPy, matplotlib, etc. have time to get wheels out. |
Codecov Report
@@ Coverage Diff @@
## master #759 +/- ##
==========================================
+ Coverage 97.52% 97.55% +0.02%
==========================================
Files 32 32
Lines 3758 3840 +82
==========================================
+ Hits 3665 3746 +81
- Misses 93 94 +1
Continue to review full report at Codecov.
|
I think codecov is okay (96.66%). @lucyleeow feel free to review/merge |
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.
Some nits and questions - sorry test_rebuild
was confusing for me.
Also could we add to the description of test_rebuild
:
# Make sure that examples that haven't been changed aren't run twice.
# Also checks `run_stale_examples` config works.
(also sorry for delay, I have been busy).
Thanks for the nice wording changes, pushed @lucyleeow |
Thanks for the changes. I am still confused by
Is it for some CI that the 'run_stale' and 'modify' give different values? Also why do I have 'po' after the number? Finally, are we getting so many 'changed' files because we added binder to the tinybuild config (#745 (comment)) ? (I vaguely remember this but forgot details) |
sphinx_gallery/tests/test_full.py
Outdated
# (sometimes this is 8, other times 9, depending on Windows/Linux for some | ||
# unknown reason) |
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.
For me 'run_stale' gives '8 changed' and 'modify' gives '9 changed' - which seems to make sense as we modify a file in 'modify'...?
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.
The reason I had to put [8|9]
was from 5164de3 -- Travis (Linux) passed with 9 but AppVeyor (Windows) wanted 8.
If you change the order IIRC (as I had it originally,
I have no idea what this means. I think the bottom line is that we just need to get these to pass |
Thanks @larsoner ! |
Makes it much easier to have a Makefile target to force re-running of a specific example/examples. See extended explanation in
configuration.rst
.