Lets say I have a script called
my_unit_tests.py for an application I am writing that must be comparable with python3 and python2.
It only took me a few minutes of reading the documentation and examples to see how I would achieve this, without parallelism.
machine: post: - pyenv global 2.7.12 3.5.2 dependencies: post: - python2.7 setup.py install - python3.5 setup.py install test: override: - python2.7 my_unit_tests.py - python3.5 my_unit_tests.py
I thought it might be nice to have
python2.7 my_unit_tests.py happen on one node, and
python3.5 my_unit_tests.py happen on another.
Is this easily done? I couldn’t find any examples of anyone doing exactly this, and none of my attempts to get this to happen worked. Any advice is much appreciated.