Skip to content

Commit

Permalink
Remove -q flag from mamba install, add mamba list for default install.
Browse files Browse the repository at this point in the history
Add mamba list calls.
Try the conda experimental sovler solution.
Use an explicit install command with all packages, --freeze-installed did not seem to work.
Try removing lapack before installing scipy.
Make sure only the conda forge channel is used in scipy install.
Use SciPy 1.9 with Ipopt 3.12.
Try skipping only the builds that have issues with scipy being involved.
  • Loading branch information
moorepants committed Feb 12, 2023
1 parent b87a235 commit 7ccf44e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
channels: conda-forge
miniforge-variant: Mambaforge
- name: Install basic dependencies
run: 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 --file docs/requirements.txt
run: mamba install -y -v lapack "libblas=*=*netlib" cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 --file docs/requirements.txt
- name: Install CyIpopt
run: |
rm pyproject.toml
python -m pip install .
mamba list
- name: Test building documentation
run: cd docs && make clean && make html && cd ..
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ jobs:
channels: conda-forge
miniforge-variant: Mambaforge
- name: Install basic dependencies
run: 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
run: mamba install -y -v 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 .
mamba list
- name: Test with pytest
run: |
python -c "import cyipopt"
mamba install -y -q pytest>=3.3.2
mamba install -y -v cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 pytest>=3.3.2
pytest
mamba install -y -q scipy>=0.19.1
mamba install -y -v 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.1
pytest
20 changes: 16 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,29 @@ jobs:
activate-environment: test-environment
python-version: ${{ matrix.python-version }}
channels: conda-forge
miniforge-variant: Mambaforge
- name: Install basic dependencies
run: 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
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
- name: Install CyIpopt
run: |
rm pyproject.toml
python -m pip install .
conda list
- name: Test with pytest
run: |
python -c "import cyipopt"
mamba install -y -q pytest>=3.3.2
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
pytest
mamba install -y -q scipy>=0.19.1
- name: Test with pytest and scipy, new ipopt
# cyipopt can build with these dependencies, but it seems impossible to
# also install scipy into these environments likely due to SciPy and
# 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
pytest

0 comments on commit 7ccf44e

Please sign in to comment.