Skip to content

Commit

Permalink
Update mambaforge references in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Oct 1, 2024
1 parent d510990 commit aba689d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 25 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build_and_deploy_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ jobs:
with:
python-version: "3.10"

- name: Setup Mambaforge
- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: nwb-guide
use-mamba: true

- name: Create and activate environment
run: mamba env update --name nwb-guide --file environments/environment-MAC-intel.yml
run: conda env update --name nwb-guide --file environments/environment-MAC-intel.yml

- name: Use Node.js 20
uses: actions/setup-node@v4
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/testing_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ jobs:
- run: git fetch --prune --unshallow --tags

# see https://github.com/conda-incubator/setup-miniconda#caching-environments
- name: Setup Mambaforge
- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: nwb-guide
use-mamba: true

- name: Set cache date
id: get-date
Expand All @@ -59,7 +57,7 @@ jobs:

- if: steps.cache.outputs.cache-hit != 'true'
name: Create and activate environment
run: mamba env update --name nwb-guide --file ${{ matrix.label }}
run: conda env update --name nwb-guide --file ${{ matrix.label }}

- name: Use Node.js 20
uses: actions/setup-node@v4
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/testing_dev_e2e_with_live_services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ jobs:
- run: git fetch --prune --unshallow --tags

# see https://github.com/conda-incubator/setup-miniconda#caching-environments
- name: Setup Mambaforge
- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: nwb-guide
use-mamba: true

- name: Set cache date
id: get-date
Expand All @@ -61,7 +59,7 @@ jobs:

- if: steps.cache.outputs.cache-hit != 'true'
name: Create and activate environment
run: mamba env update -n nwb-guide -f ${{ matrix.label }}
run: conda env update -n nwb-guide -f ${{ matrix.label }}

- name: Use Node.js 20
uses: actions/setup-node@v4
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/testing_dev_with_live_services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ jobs:
- run: git fetch --prune --unshallow --tags

# see https://github.com/conda-incubator/setup-miniconda#caching-environments
- name: Setup Mambaforge
- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: nwb-guide
use-mamba: true

- name: Set cache date
id: get-date
Expand All @@ -59,7 +57,7 @@ jobs:

- if: steps.cache.outputs.cache-hit != 'true'
name: Create and activate environment
run: mamba env update -n nwb-guide -f ${{ matrix.label }}
run: conda env update -n nwb-guide -f ${{ matrix.label }}

- name: Use Node.js 20
uses: actions/setup-node@v4
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/testing_flask_build_and_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,18 @@ jobs:
run: uname -m

# see https://github.com/conda-incubator/setup-miniconda#caching-environments
- name: Setup Mambaforge
- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: nwb-guide
use-mamba: true

- name: Set cache date
id: get-date
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash

- name: Cache Mamba env
- name: Cache Conda env
uses: actions/cache@v4
with:
path: ${{ env.CONDA }}/envs
Expand All @@ -61,7 +59,7 @@ jobs:

- if: steps.cache.outputs.cache-hit != 'true'
name: Update environment
run: mamba env update -f ${{ matrix.label }}
run: conda env update -f ${{ matrix.label }}

- name: Setup Node.js 20
uses: actions/setup-node@v4
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/testing_pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@ jobs:
- run: git fetch --prune --unshallow --tags

# see https://github.com/conda-incubator/setup-miniconda#caching-environments
- name: Setup Mambaforge
- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: nwb-guide
use-mamba: true

# Setup conda environment from cache
- name: Set environment cache date
Expand All @@ -56,7 +54,7 @@ jobs:
id: cache
- if: steps.cache.outputs.cache-hit != 'true'
name: Create and activate environment
run: mamba env update --name nwb-guide --file ${{ matrix.label }}
run: conda env update --name nwb-guide --file ${{ matrix.label }}

- name: Use Node.js 20
uses: actions/setup-node@v4
Expand Down

0 comments on commit aba689d

Please sign in to comment.