From ff91b47f283d0fdf62c8796c398fb4ec2c7c97a5 Mon Sep 17 00:00:00 2001 From: John Huddleston Date: Tue, 5 Jan 2021 11:16:56 -0800 Subject: [PATCH] Use correct Python versions in CI environments Currently, Travis CI runs one build for three major Python versions except each environment installs and uses the same Python 3.6 version from a fixed conda environment file. This change follows the recommendations from the conda documentation [1] to build each conda environment with the Travis Python version variable and the `conda create` command instead of the `conda env create` command. The cost of duplicating our dependencies here is small compared to the benefit of testing Augur with the appropriate Python versions. Fixes #626 [1] https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/use-conda-with-travis-ci.html --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f80889d51..de956a665 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ jobs: - conda config --set always_yes yes --set changeps1 no - conda update -q conda - conda info -a - - conda env create -f environment.yml + - conda create -n augur -c bioconda python=$TRAVIS_PYTHON_VERSION mafft raxml fasttree iqtree vcftools pip - source activate augur install: - pip install -e .[dev]