Skip to content

Commit

Permalink
Merge pull request #1393: Update CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Jan 24, 2024
2 parents 18e2388 + abe4b8b commit 44dc4b6
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,28 @@ jobs:
COVERAGE_RCFILE: ${{ github.workspace }}/.coveragerc
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3

- name: Set cache key
run: echo "DATE=$(date +'%Y-%m-%d')" >> "$GITHUB_ENV"

# While it may be tempting to install Augur using Conda to avoid hardcoding
# the list of dependencies here, installing just the dependencies not
# available on PyPI allows us to test against dependencies installed by pip,
# which may have slightly different versions compared to Conda counterparts.
- name: Install dependencies from Conda
uses: mamba-org/setup-micromamba@v1
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge,bioconda
- run: |
mamba install \
mafft \
raxml \
fasttree \
iqtree \
vcftools \
biopython=${{ matrix.biopython-version }}
create-args: mafft raxml fasttree iqtree vcftools biopython=${{ matrix.biopython-version }} python=${{ matrix.python-version }}
condarc: |
channels:
- conda-forge
- bioconda
channel_priority: strict
cache-environment: true
cache-environment-key: ${{ env.DATE }}
environment-name: augur

# Replace the Conda Augur installation with the local version.
- run: pip install .[dev]
- run: conda info
- run: conda list
Expand Down Expand Up @@ -114,10 +123,11 @@ jobs:
path: ./augur

- name: Set cache key
id: cache-key
run: echo "DATE=$(date +'%Y-%m-%d')" >> "$GITHUB_ENV"

- uses: mamba-org/setup-micromamba@v1
# Set up a Conda environment that replicates Nextstrain's Conda runtime.
- name: Install nextstrain-base from Conda
uses: mamba-org/setup-micromamba@v1
with:
create-args: nextstrain-base
condarc: |
Expand All @@ -130,6 +140,7 @@ jobs:
cache-environment-key: ${{ env.DATE }}
environment-name: augur

# Replace the Conda Augur installation with the local version.
- run: pip install ./augur

- uses: actions/checkout@v4
Expand Down

0 comments on commit 44dc4b6

Please sign in to comment.