Run tests and publish to pypi automatically
This merge request updates gitlab-ci to:
- Build the pytxs package and the documentation
- Test the package on python3.8 and 3.12
- Update the documentation only when running on the
master
branch or doing a release (with a tagvX.Y.Z
). - Publish the package to pypi.org when doing a release (with a tag
vX.Y.Z
).
For the release, I already set-up the credential in: https://gitlab.esrf.fr/levantin/txs/-/settings/ci_cd -> Variables
I had to modify the tests to make them work (I checked manually that it's actually correct) and to skip one test because the .log file is missing. While at it, I also fixed some warnings while building the documentation.
Note: The update of the documentation and publish to pypi needs to be tested, but it's similar to an already running set-up: https://gitlab.esrf.fr/kmap/xsocs/-/blob/main/.gitlab-ci.yml?ref_type=heads#L133
Edited by Thomas Vincent