Add some combinations of --with-python=<path>/--with-python/--without-python to GitLab CI

(cherry picked from commit 99cf0fae)
40 jobs for !1362 with 781-fix-python-check-in-configure-script-v9_12 in 23 seconds (queued for 8 seconds)
detached