Test and build docs on GitHub Actions #19
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.
For #18.
Fixes #22.
This PR adds workflows to run the tests and build the docs with GitHub Actions.
Tests
It's only testing the upstream supported versions of Python: 3.8-3.11: https://devguide.python.org/versions/
I didn't add uploading of coverage to Coveralls. I usually use Codecov myself, so have left Coveralls out for later addition.
Docs
The docs are built and uploaded as an "artifact" to GitHub Actions. This means you can download a zip of the built docs from the build summary tab.
(I usually use Read the Docs, and enable the PR build previews, so you get a hosted page for each PR.)
Deploy
This PR does CI, not CD. I didn't attempt to add deploying to PyPI or upload of docs, but I recommend doing this later. PyPI's "Trusted Publishers" is an excellent choice along with the 'pypi-publish' GitHub Action:
I also didn't delete the old
.travis.yml
yet in case you need it for the deploy reference.Demo