From c6c01f963b28a14f2688ef8ec20b81c65f2bfc19 Mon Sep 17 00:00:00 2001 From: "Jason K. Moore" Date: Sat, 18 Feb 2023 06:22:32 +0100 Subject: [PATCH] Change CI to use mambaforge. --- .github/workflows/tests.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5cc2742f..381cd1a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,22 +36,21 @@ jobs: activate-environment: test-environment python-version: ${{ matrix.python-version }} channels: conda-forge + miniforge-variant: Mambaforge - name: Install basic dependencies run: | - conda install -n base conda-libmamba-solver - conda config --set solver libmamba - conda install -q -y lapack "libblas=*=*netlib" cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 + mamba install -q -y lapack "libblas=*=*netlib" cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 - name: Install CyIpopt run: | rm pyproject.toml python -m pip install . - conda list + mamba list - name: Test with pytest run: | python -c "import cyipopt" - conda remove lapack - conda install -q -y cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 pytest>=3.3.2 - conda list + mamba remove lapack + mamba install -q -y cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 pytest>=3.3.2 + mamba list pytest - name: Test with pytest and scipy, new ipopt # cyipopt can build with these dependencies, but it seems impossible to @@ -59,6 +58,6 @@ jobs: # Ipopt needed different libfortrans. if: (matrix.ipopt-version != '3.12' && matrix.python-version != '3.11') || (matrix.ipopt-version != '3.12' && matrix.python-version != '3.10' && matrix.os != 'macos-latest') run: | - conda install -q -y -c conda-forge cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 pytest>=3.3.2 scipy>=0.19.0 - conda list + mamba install -q -y -c conda-forge cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 pytest>=3.3.2 scipy>=0.19.0 + mamba list pytest