Skip to content

Commit

Permalink
chore: use conda setup action
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil committed Nov 13, 2024
1 parent c44aaea commit 35530d1
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,22 @@ jobs:
- "3.12"
needs: linting
steps:
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: environment.yml
- name: Install Python via conda
uses: s-weigand/setup-conda@v1
with:
python-version: ${{ matrix.python-version }}
conda-channels: defaults,bioconda,conda-forge
channels: conda-forge,bioconda,nodefaults
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 2
- name: Install mamba
run: conda install -y mamba>=1.0.0
- name: Prepare environment.yml file
run: >
cp environment.yml /tmp/environment.yml && sed -i -e
's/- python=.*/- python=${{ matrix.python-version }}/'
/tmp/environment.yml
- name: Update environment using mamba
run: mamba env update --name root --file /tmp/environment.yml
- name: Fail early on htslib etc. problems
run: |
set -euo pipefail
Expand Down

0 comments on commit 35530d1

Please sign in to comment.