This PR fixes an issue where the Travis pipeline wasn't actually using the correct python version when the conda environment was installed. This happened because the conda env create command ignores the command line python variable in favor of the version suggested by the dependencies in env.yml. Instead, we now use conda install to create the correct version, and added a test to ensure the runtime python version matches the TRAVIS_PYTHON_VERSION variable if it is present.
This PR fixes an issue where the Travis pipeline wasn't actually using the correct python version when the conda environment was installed. This happened because the
conda env create
command ignores the command line python variable in favor of the version suggested by the dependencies inenv.yml
. Instead, we now useconda install
to create the correct version, and added a test to ensure the runtime python version matches the TRAVIS_PYTHON_VERSION variable if it is present.