autonlab / auton-survival

Auton Survival - an open source package for Regression, Counterfactual Estimation, Evaluation and Phenotyping with Censored Time-to-Events
http://autonlab.github.io/auton-survival
MIT License
315 stars 74 forks source link

ci: Add semver-compliant CI-CD and poetry dependency management #127

Closed matteo4diani closed 1 year ago

matteo4diani commented 1 year ago

This PR fixes issue #87.

Overview

CI-CD pipeline consisting of:

  1. A Quality job that for the time being just executes unit tests.
  2. A Release job that releases to GitHub and publishes to PyPI using python-semantic-release and poetry.

This pipeline automates semantic versioning and distribution of Python projects by leveraging conventional commits.

From my fork, I have done some test releases on PyPI: https://pypi.org/project/auton-survival-demo/

For a demo + docs of this CI-CD pipeline in a simplified project see https://github.com/matteo4diani/poetry-packaging-demo

Caveat