-
Notifications
You must be signed in to change notification settings - Fork 85
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
ci: Skip doctest for 'Minimum supported dependencies' workflow #1589
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1589 +/- ##
=======================================
Coverage 97.70% 97.70%
=======================================
Files 63 63
Lines 4050 4050
Branches 576 576
=======================================
Hits 3957 3957
Misses 54 54
Partials 39 39
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
- name: Test with pytest | ||
run: | | ||
python -m pytest -r sx --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py | ||
# Run on tests/ to skip doctests of src given examples are for latest APIs | ||
python -m pytest -r sx --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py tests/ |
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.
@kratsg I'm not sure if there is an easier way to do this that running explicitly over tests/
.
Is there a way at the command line to negate the --doctest-modules
from
Line 44 in 173c3c7
addopts = "--ignore=setup.py --ignore=validation/ --ignore=binder/ --ignore=docs/ --cov=pyhf --cov-report=term-missing --cov-config=.coveragerc --cov-report xml --doctest-modules --doctest-glob='*.rst'" |
?
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.
Nope
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.
Okay, cool. This is ready for review then. :)
I'm going to just merge this as it should be uncontroversial as it is extra tests, but let me know if anyone wants changes made in another PR. 👍 |
Description
Run pytest explicitly over the tests/ directory only to avoid in the 'Minimum supported dependencies' workflow to avoid running doctest on the docstring examples. The latest version of the JAX docsting examples have some print failures that are incompatible with the older versions of JAX, even thought the API tests pass.
Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: