Repository navigation
Run the full test matrix before publishing a release - #164
Conversation
Assisted-by: Cursor Agent with Grok 4.7
Assisted-by: Cursor Agent with Grok 4.7
|
Sorry, I thought I had posted a comment here a couple days ago but I realized I forgot to submit it at the time 🤦 But on a second look, the comment doesn't really matter, so I'm good with this as is. For future reference, what I was thinking about was whether it makes sense to be able to run this manually. Specifically, when running the release workflow manually, I would think it'd make sense to push to test PyPI (though obviously not real PyPI). However, I think test PyPI doesn't accept local version identifiers in version numbers, so it wouldn't be possible to do a test publish unless it was triggered by a tag or release. If we want a workflow that builds packages and runs tests on every version, that seems like it'd make more sense as an option on the main testing workflow. Though I kind of lean toward thinking it's not all that necessary to have that option available in CI runs. Of course the same considerations would apply to |
Follow-up to #163, as discussed there. This builds on that branch, so until #163 is merged the diff includes its commit too.
Pushes and pull requests keep the reduced set of environments from #163, but before a release goes to PyPI the full matrix runs again (CPython 3.7-3.15 and PyPy 3.7-3.12, both with and without smtp, plus the minimum pytest versions), and building and publishing only happen if it passes. The layout follows setuptools-pyproject-migration:
.github/workflows/test.ymlis a reusable workflow that runs tox for a given Python, OS and set of environments.tests.ymlcalls it with the reduced matrix on push and pull requests.release.ymlcalls it with the full matrix, and the build and publish jobs depend on it. It can also be started manually to run the full suite and build the packages without publishing.tox.inikeeps the reduced default envlist and adds afulllabel with the previous one, sotox -m fullruns everything locally.Checked the workflows with actionlint and ran
tox -e pyandtox -e py-smtplocally.I used an AI assistant (Cursor Agent with Grok 4.7) while writing this change. I reviewed the code myself, and the commit has an Assisted-by trailer.