Setup pytest and github actions for testing and release #21
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.
I tried to make pytests for most of the functionality that is currently tested in testAll.sh There is still a bunch more that need to be done though. Some are set to expected fail as well, but these are minor issues, see the reasons.
I also made some minor changes to how the package is organized. This is to follow more modern python packaging trends. I moved almost everything out of setup.py and put it into setup.cfg instead. I added a pyproject.toml for setting up build isolation and scm versioning. The scm versioning integrating with setuptools will make it easy to publish new releases to pypi with correct version. We just need to tag a release on GitHub with the semantic version (e.g. v0.1.0) and this will trigger a github action that runs tests and pushes to pypi if all goes well. Do we have a pypi project setup, if so we just need to add the API key to the repo's secrets.