This document describes the steps to make a new unittest2pytest release.
main should always be green and a potential release candidate. unittest2pytest follows
semantic versioning, so given that the current version is X.Y.Z, to find the next version number
one needs to look at the CHANGELOG.rst file:
- If there any new feature, then we must make a new minor release: next
release will be
X.Y+1.0. - Otherwise it is just a bug fix release:
X.Y.Z+1.
To publish a new release X.Y.Z, the steps are as follows:
Create a new branch named
release-X.Y.Zfrom the latestmain.Update the version in
unittest2pytest/__init__.py.Update the
CHANGELOG.rstfile with the new release information.Commit and push the branch to
upstreamand open a PR.Once the PR is green and approved, start the
deployworkflow:gh workflow run deploy.yml -R pytest-dev/unittest2pytest --ref release-VERSION --field version=VERSIONThe PR will be automatically merged.
Update the version in
unittest2pytest/__init__.pyandCHANGELOG.rstfor the next release (usually use "minor+1" with the.dev0suffix).