ENH: Update gitlab-ci-yml with workflow rules to avoid duplicat pipelines

See https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines
38 jobs for !829 with gitlab-ci-avoid-duplicated-pipelines in 79 minutes and 44 seconds (queued for 7 seconds)
latest merge request