Materials-Data-Science-and-Informatics / fair-python-cookiecutter

An opinionated cookiecutter template to kickstart a modern best-practice Python project with FAIR metadata.
MIT License
27 stars 4 forks source link

Improve GitLab CI pipeline to match provided GitHub CI as closely as possible #15

Closed apirogov closed 10 months ago

apirogov commented 11 months ago

Currently, the Gitlab CI is only rudimentary and lacks behind the Github CI scripts.

Before implementing #11 the Gitlab pipelines should be brought to the same or similar level.

Maintenance of both sets of scripts should be as easy as possible, thus keeping them similar would help.

Ideally, the Gitlab CI is also run from this repo in a Gitlab Demo repo to verify that everything works and to make Gitlab a first-class target.

apirogov commented 11 months ago

The API of Github and Gitlab on URL level is apparently compatible, i.e. given a repo base URL, there is no need to change construction of

Need further to understand the URL logic for gitlab pages (probably also very similar)

For the direct cloning link the syntax must be: git+ssh://git@domain.com:path/to/repo.git so we need to split the project URL to rewrite it like that.

The major issue is how to avoid complication in user prompting. Current idea: