Skip to content

Commit

Permalink
Use correct Python versions in CI environments
Browse files Browse the repository at this point in the history
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
  • Loading branch information
huddlej committed Jan 5, 2021
1 parent 7e31e18 commit ff91b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ff91b47

Please sign in to comment.