Run tests on multiple versions of Python

python

#1

I want to be able to run the tests of my app in multiple versions of Python without having to copy & paste the job.
Any recommendations?


#2

You can use YAML anchors and aliases to clone your job configuration from one job to the next, overriding the docker image to change the Python version. Then, set up a workflow that runs the jobs in parallel.

Here’s an example that I’ve just now got working with one of my projects: https://github.com/adambrenecki/virtualfish/blob/aa3d6271bcb86ad27b6d24f96b5bd386d176f588/.circleci/config.yml


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.