Skip to content

Commit

Permalink
switch setup-conda to setup-miniconda
Browse files Browse the repository at this point in the history
  • Loading branch information
billbrod committed Feb 18, 2025
1 parent 5947bfc commit 11929df
Showing 1 changed file with 20 additions and 27 deletions.
47 changes: 20 additions & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
schedule:
- cron: "0 0 * * 0" # weekly

env:
CONDA_PKGS_DIRS: /home/runner/pkgs

jobs:
test_models:
runs-on: ubuntu-latest
Expand All @@ -16,16 +13,15 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup conda
uses: s-weigand/setup-conda@v1.2.3
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3.1.1
with:
update-conda: true
mamba-version: "*"
python-version: 3.7
conda-channels: anaconda, conda-forge, bioconda
channels: conda-forge, bioconda
channel-priority: true
- name: Create environment
run: |
conda install -n base mamba -c conda-forge
conda clean --all -y
mamba env create -f environment.yml
- name: Run tests with pytest
run: |
Expand All @@ -40,16 +36,15 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup conda
uses: s-weigand/setup-conda@v1.2.3
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3.1.1
with:
update-conda: true
mamba-version: "*"
python-version: 3.7
conda-channels: anaconda, conda-forge, bioconda
channels: conda-forge, bioconda
channel-priority: true
- name: Create environment
run: |
conda install -n base mamba
conda clean --all -y
mamba env create -f environment.yml
- name: Setup FFmpeg
uses: FedericoCarboni/setup-ffmpeg@v3.1
Expand All @@ -75,16 +70,15 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup conda
uses: s-weigand/setup-conda@v1.2.3
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3.1.1
with:
update-conda: true
mamba-version: "*"
python-version: 3.7
conda-channels: anaconda, conda-forge, bioconda
channels: conda-forge, bioconda
channel-priority: true
- name: Create environment
run: |
conda install -n base mamba
conda clean --all -y
mamba env create -f environment.yml
source activate metamers
mamba install jupyter nbclient>=0.5.5
Expand Down Expand Up @@ -112,16 +106,15 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup conda
uses: s-weigand/setup-conda@v1.2.3
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3.1.1
with:
update-conda: true
mamba-version: "*"
python-version: 3.7
conda-channels: anaconda, conda-forge, bioconda
channels: conda-forge, bioconda
channel-priority: true
- name: Create environment
run: |
conda install -n base mamba
conda clean --all -y
mamba env create -f environment.yml
- name: modify config.yml
run: |
Expand Down

0 comments on commit 11929df

Please sign in to comment.