0

There is the following simple pipeline:
buildtestdeploy
that uses specified python version for all stages, for example 3.8.

How can I scale (parametrize) it for python with versions: 3.7, 3.8 and 3.9?
Simplest solution that comes to mind is to create 3 different pipelines with hardcoded python versions:
build_37test_37deploy_37
build_38test_38deploy_38
build_39test_39deploy_39.

I know this is a very bad solution.
What is the right way?

1
  • this sounds like a pretty cut-and-dry use case for Tox - have you tried that? Sep 21 at 13:51
0

One could use Gitlab templates in conjunction with an environment variable that sets the python version.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.