-
Notifications
You must be signed in to change notification settings - Fork 310
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
small test changes #541
small test changes #541
Conversation
Codecov Report
@@ Coverage Diff @@
## master #541 +/- ##
==========================================
+ Coverage 76.34% 76.60% +0.26%
==========================================
Files 110 109 -1
Lines 9819 9807 -12
Branches 1067 1063 -4
==========================================
+ Hits 7496 7513 +17
+ Misses 1943 1915 -28
+ Partials 380 379 -1
Continue to review full report at Codecov.
|
(rebased and hopefully fixed the check-manifest test) |
(one more commit to fix the downstream tests which were broken by the top-level contest.py file) |
* the dependencies are specified in setup.cfg rather than .py
* fix defining pytest_plugins in non-top-level conftest file (pytest 3+) https://docs.pytest.org/en/6.2.x/deprecations.html#pytest-plugins-in-non-top-level-conftest-files * update to pytest 6 as this was the first version to support pyproject.toml https://docs.pytest.org/en/stable/changelog.html#id123
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.
This is a fantastic contributions. Thanks so much, @oliver-sanders. Merging away!
Some small test changes:
Use the hash of the
setup.py
file for pip caching (rather thansetup.py
) in all actions.One action is already using the
setup.cfg
file:jupyter_server/.github/workflows/check-release.yml
Line 27 in 51e3ec3
The others aren't:
jupyter_server/.github/workflows/python-linux.yml
Line 34 in 51e3ec3
The pip environment may have been frozen for a little while because of this?
Define
pytest_plugins
in a top-level conftest file to support pytest 4+.Pin pytest>=6 as earlier versions ignored the configuration in the
pytest.toml
file.Run doctests in pytest (0.34% coverage increase 😆).
Test against Python 3.10-dev (except on Windows due to pywin32 incompatibility)
Bump the versions of checkout/cache/setup-python actions.