From 19be5e77baee8a61baa604b7d8c8748ff5c93163 Mon Sep 17 00:00:00 2001 From: Valeriu Predoi Date: Tue, 25 Jul 2023 16:17:39 +0100 Subject: [PATCH] cleanup --- .github/workflows/install-from-source.yml | 16 ++++++++++++++-- .github/workflows/run-tests.yml | 16 ++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) 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