Skip to content

Commit

Permalink
[ci] copy conda init from pymc
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesBuchner committed Oct 20, 2023
1 parent b114d31 commit 4b26dda
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ jobs:

- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
use-only-tar-bz2: true
#mamba-version: "*"
miniforge-variant: Mambaforge
miniforge-version: latest
mamba-version: "*"
activate-environment: pymc-test
channel-priority: strict
environment-file: conda-envs/environment-test.yml
python-version: ${{matrix.python-version}}
use-mamba: true
use-only-tar-bz2: false # IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267

- name: Install mamba
run: conda install -y -c conda-forge mamba

- name: Set directory names
run: |
echo "MODELDIR=$HOME/Downloads/models" >> $GITHUB_ENV
Expand Down Expand Up @@ -189,13 +191,15 @@ jobs:

- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: false
python-version: ${{ matrix.python-version }}
use-only-tar-bz2: true
#mamba-version: "*"

- name: Install mamba
run: conda install -y -c conda-forge mamba
miniforge-variant: Mambaforge
miniforge-version: latest
mamba-version: "*"
activate-environment: pymc-test
channel-priority: strict
environment-file: conda-envs/environment-test.yml
python-version: ${{matrix.python-version}}
use-mamba: true
use-only-tar-bz2: false # IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267

- name: Install python dependencies
run: |
Expand Down

0 comments on commit 4b26dda

Please sign in to comment.