Synchronise tested Python versions in tox.ini and .github/workflows/tox.yml #450
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.
actions/toolkit#437 didn't use the same Python version in the GitHub Actions config as in the tox config. As a result, Python 2 and 3.5 aren't tested automatically on PRs etc.
This synchronises the two lists. Namely, it restores CPython 2 and 3.5 testing on GitHub Actions and adds PyPy to the tox configuration.
As expected (#435), installations on the versions 2.7 and 3.5 do not currently work due to dependencies no longer supporting those EOL versions, so those jobs will fail until they are fixed in further PRs. Unfortunately, GitHub Actions still doesn't support allowable failures (actions/runner#2347), so this will show red crosses everywhere. I think that's preferable to not running the tests at all though, otherwise the code will likely break even further under those ancient Python versions, which makes a final compatibility release as desired by @jjjake in actions/toolkit#435 harder.
NB, I made this commit on top of the v2.2.0 release, which isn't on master yet. actions/toolkit#449 should likely be merged before this PR.