Conversation
Combined pytest into usual workflow
Add pytest step to workflow Add pip install setuptools and wheel Invoke mypy directly, no need for tox
Add pytest plugins
Ignore flake8 E704 (Multiple statements on one line) too make overloads smaller Add [pytest] config section
Change distutils.build_py to its setuptools wrapper. Distutils one deprecated since py3.8, but setuptools one working py3.6-3.10
Remove nose
Replace nose with pytest
Move pytest before Documentation in workflow
Not sure it is picking up the tox.ini
Add 3.10.0-beta.3 to test matrix. (beta 4 out, but wouldn't install. Need to force cache emptying?)
update to actions/setup-python@v1
Member
|
Fantastic work once again! I remember that now being able to use pytest was a hurdle for some contributors, I am glad that's removed now. Maybe you could also have a look at the respective section in the docs and see if a command-line without There also is a Makefile that could be loaded up with useful targets for typical local development, to help running tests and linters for example. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #1287
Some tidying up for config files.
All I wanted was a linter that could report on imports only needed for typing!
Anyway...
setup.py
Change distutils build_py to setuptools wrapper. Deprecated since py3.8, I thought it caused a problem with 3.10beta. Now works py3.6-3.10.
Tox.ini
Ignore E704 (mutiple expression per line) so can make @Overloads neater
Add [pytest] config section
requirements
Created requirements-dev.txt with pytest and plugins
Edit: Changed nose to pytest in test-requirements.txt
Pythonpackage.yaml
Add pip install wheel and setuptools, newer packages were having to fallback to EZ_setup without them.
Invoke mypy directly, no need for tox.
Add py3.10.0-Beta.3 to test matrix....
....which needed update to actions/setup-python@v2
Add pytest step - runs after Documentation and set to always pass, but shows errors in info
Edit: Swapped nose for pytest
Results
Pytest results: 378 passed, 42 skipped, 3 warnings
Nose results: 420 tests, 42 skipped (= 378)
So we might just be able to switch directly to Pytest to run the tests.
But test code still needs to be gone through to remove any nose dependancy for py3.10.
Edit: if there is any - all looks like unittest to me?
Edit2: So ive removed nose everywhere, and all same tests pass or fail or are skipped!