fmilthaler / FinQuant

A program for financial portfolio management, analysis and optimisation.
MIT License
1.4k stars 199 forks source link

Chore/auto versioning workflow #111

Closed fmilthaler closed 1 year ago

fmilthaler commented 1 year ago

This adds another GitHub workflow AutoVersion for automated versioning.

AutoVersion is triggered after PR is merged into master or develop. It then determines whether the version is a patch or minor change based on the source branch name.

The branch name patterns that are currently matched to one of the above are:

Note: the patterns mentioned above, e.g. bugfix/ must be the prefix of the branch name. If you are working on a bugfix to fix a print statement of the portfolio properties, your branch name should be something like bugfix/print-statement-portfolio-properties. For the automated versioning to work, the branch name is required to start with bugfix/ or one of the other above mentioned patterns.

For now, the release number is also updated every time the version number is updated. This practically renders the release number redundant, but it is used in the README.md to show the current release number on PyPI.