Skip to content

Commit

Permalink
Switch from mambaforge to miniforge
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-rose committed Oct 1, 2024
1 parent 788b918 commit 98dfe9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,12 @@ jobs:
echo '(DEBUG) The value of steps.env_change.outputs.any_changed is:'
echo ${{ steps.env_change.outputs.any_changed }}
- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
python-version: "3.10" # binderbot is failing with python 3.11
activate-environment: ${{ inputs.environment_name }}
use-mamba: true

- name: Set cache date
if: inputs.use_cached_environment == 'true'
Expand All @@ -179,10 +177,10 @@ jobs:
|| steps.cache.outputs.cache-hit != 'true')
&& steps.parse_config.outputs.execute_notebooks == 'binder'
run: |
mamba install -c conda-forge jupyter-book pip
mamba install sphinx-pythia-theme
conda install -c conda-forge jupyter-book pip
conda install sphinx-pythia-theme
pip install git+https://github.com/pangeo-gallery/binderbot.git
mamba list
conda list
- name: Update execution environment
if: |
Expand All @@ -191,8 +189,8 @@ jobs:
|| steps.env_change.outputs.any_changed == 'true')
&& steps.parse_config.outputs.execute_notebooks != 'binder'
run: |
mamba env update -n ${{ inputs.environment_name }} -f ${{ inputs.environment_file }}
mamba list
conda env update -n ${{ inputs.environment_name }} -f ${{ inputs.environment_file }}
conda list
- name: Get paths to notebook files
if: |
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/link-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true

- name: Install Jupyterbook
run: mamba install -c conda-forge jupyter-book
run: conda install -c conda-forge jupyter-book

- name: Check for config file
id: check_config
Expand Down

0 comments on commit 98dfe9b

Please sign in to comment.