diff --git a/.github/workflows/install-from-source.yml b/.github/workflows/install-from-source.yml index 40d7b8daa4..fa8fb17a40 100644 --- a/.github/workflows/install-from-source.yml +++ b/.github/workflows/install-from-source.yml @@ -55,13 +55,14 @@ jobs: use-mamba: true - name: Update conda and mamba run: | - conda update -n base -c conda-forge conda # 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 + - 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 @@ -100,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: | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 30335c76c0..7d5e388bc9 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -57,13 +57,14 @@ jobs: use-mamba: true - name: Update conda and mamba run: | - conda update -n base -c conda-forge conda # 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 + - 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 @@ -97,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