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

[Github Actions] Update environment with latest mamba #2148

Closed
wants to merge 5 commits into from
Closed
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
23 changes: 23 additions & 0 deletions .github/workflows/install-from-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
push:
branches:
- main
- GA_update_condamamba_adhoc
# run the test only if the PR is to main
# turn it on if required
#pull_request:
Expand Down Expand Up @@ -52,6 +53,17 @@ jobs:
miniforge-version: "latest"
miniforge-variant: Mambaforge
use-mamba: true
- name: Update conda and mamba
run: |
# setup-miniconda@v2 installs an old conda and mamba
# forcing a modern mamba updates both mamba and conda
# this and next step should be removed when updated upstream
conda update -n base -c conda-forge conda
conda install -c conda-forge "mamba>=1.4.8"
conda --version
mamba --version
- name: Update environment with new mamba
run: mamba update -c conda-forge -f environment.yml
- run: mkdir -p source_install_linux_artifacts_python_${{ matrix.python-version }}
- name: Record versions
run: |
Expand Down Expand Up @@ -89,6 +101,17 @@ jobs:
miniforge-version: "latest"
miniforge-variant: Mambaforge
use-mamba: true
- name: Update conda and mamba
run: |
# setup-miniconda@v2 installs an old conda and mamba
# forcing a modern mamba updates both mamba and conda
# this and next step should be removed when updated upstream
conda update -n base -c conda-forge conda
conda install -c conda-forge "mamba>=1.4.8"
conda --version
mamba --version
- name: Update environment with new mamba
run: mamba update -c conda-forge -f environment.yml
- run: mkdir -p source_install_osx_artifacts_python_${{ matrix.python-version }}
- name: Record versions
run: |
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
push:
branches:
- main
- GA_update_condamamba_adhoc
# run the test only if the PR is to main
# turn it on if required
#pull_request:
Expand Down Expand Up @@ -54,6 +55,17 @@ jobs:
miniforge-version: "latest"
miniforge-variant: Mambaforge
use-mamba: true
- name: Update conda and mamba
run: |
# setup-miniconda@v2 installs an old conda and mamba
# forcing a modern mamba updates both mamba and conda
# this and next step should be removed when updated upstream
conda update -n base -c conda-forge conda
conda install -c conda-forge "mamba>=1.4.8"
conda --version
mamba --version
- name: Update environment with new mamba
run: mamba update -c conda-forge -f environment.yml
- run: mkdir -p test_linux_artifacts_python_${{ matrix.python-version }}
- run: conda --version 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/conda_version.txt
- run: python -V 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/python_version.txt
Expand Down Expand Up @@ -86,6 +98,17 @@ jobs:
miniforge-version: "latest"
miniforge-variant: Mambaforge
use-mamba: true
- name: Update conda and mamba
run: |
# setup-miniconda@v2 installs an old conda and mamba
# forcing a modern mamba updates both mamba and conda
# this and next step should be removed when updated upstream
conda update -n base -c conda-forge conda
conda install -c conda-forge "mamba>=1.4.8"
conda --version
mamba --version
- name: Update environment with new mamba
run: mamba update -c conda-forge -f environment.yml
- run: mkdir -p test_osx_artifacts_python_${{ matrix.python-version }}
- run: conda --version 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/conda_version.txt
- run: python -V 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/python_version.txt
Expand Down
Loading