Setup GitLab based CI pipeline
Summary
This PR aims to migrate the current Jenkins based CI pipeline to GitLab CI. It tries to achieve exactly the same behaviour that was happening via the Jenkins pipeline. Specifically, do the following job
- Build image (every new push)
- Run test cases (every new push)
- Push package to Test PyPI (if 1 & 2 passes AND it's a merge request)
- Push package to PyPI (if 1 & 2 passes AND it's a tag)
2 new deployment environments have been created:
-
staging
- used to push to Test PyPI -
production
- used to push to PyPI
Edited by Pokhi