Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from mambaforge to miniforge #124

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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