Repository navigation
Refactor migration doctests and run as tests - #8133
Conversation
|
Reviews (1): Last reviewed commit: "Refactor migration doctests and run as t..." | Re-trigger Greptile |
Refactor the migration doc code into a utility function, and make new script to run doctests only. Use that script to test migration doctests as part of the standard all-platform test runs.
36ea8b9 to
f1909bb
Compare
|
Reviews (2): Last reviewed commit: "Refactor migration doctests and run as t..." | Re-trigger Greptile |
This comment was marked as outdated.
This comment was marked as outdated.
|
Reviews (3): Last reviewed commit: "Remove unused imports (apply commit hook..." | Re-trigger Greptile |
|
OK to merge this one? |
stefanv
left a comment
There was a problem hiding this comment.
Some minor comments; please self-merge when ready.
| RUNNER = doctest.DocTestRunner() | ||
|
|
||
|
|
||
| class TrackerDict(dict): |
| run: | | ||
| $PYTEST --doctest-plus --showlocals --pyargs skimage ./tests | ||
|
|
||
| - name: Run migration doctests |
There was a problem hiding this comment.
Not sure we need to run this more than once; a single time along with the docs build should be sufficient.
There was a problem hiding this comment.
OK - I'll revert to the previous incantation, which was just at the doc build.
Co-authored-by: Stefan van der Walt <[email protected]>
|
Reviews (4): Last reviewed commit: "Apply suggestions from code review" | Re-trigger Greptile |
matthew-brett
left a comment
There was a problem hiding this comment.
Addressed, I think.
| run: | | ||
| $PYTEST --doctest-plus --showlocals --pyargs skimage ./tests | ||
|
|
||
| - name: Run migration doctests |
There was a problem hiding this comment.
OK - I'll revert to the previous incantation, which was just at the doc build.
|
Reviews (5): Last reviewed commit: "Move tests back to doc build" | Re-trigger Greptile |
Refactor the migration doc code into a utility function, and make new
script to run doctests only. Use that script to test migration doctests
as part of the standard all-platform test runs.