- This setup is inspired by the setup in github.com/python-poetry/poetry.
- Automatically publishing on tag pushes feels brittle, revert to a manual trigger to nre PyPI releases.
- Move the test step to a new test workflow to ensure it is still run on each commit.
[test.]pypi.org reject uploads of distributions with an already
existing version number.
Publishing to testpypi on every commit therefore does not work
in the current versioning setup since it leads to
duplicate release versions.