-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG] Refactors doc test into seperate script #12248
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
Closing, see the issue, thanks for your PR. |
|
||
set -e | ||
|
||
if [[ "$CHECK_PYTEST_SOFT_DEPENDENCY" == "true" ]]; then |
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.
Out of curiosity why did you move this out of test_script.sh
?
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 original test_script.sh
order was:
- Run pytest scikit-learn modules.
- Run doc-test.
- Run check_pytest_soft_dependency, which removes pytest.
If check_pytest_soft_dependency
was kept in test_script.sh
, pytest would be removed before doc-test
gets to run.
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.
Why is this WIP? The only problem I can see is that now test_docs and test_pytest_soft_dependency are also being run on the flake8 check. Maybe the flake8 check should be done by overriding script
rather than by setting an env var.
But from travis.yml it looks like the flake8 test sets |
From the latest Travis run: |
Reference Issues/PRs
Fixes #12237
What does this implement/fix? Explain your changes.
This fix runs the doc tests independently of the module tests. When either one fails, the CI will fail.