Add DIFFENGINE as canonicalization backend #209
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test_nlp_solvers | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - '*' | |
| jobs: | |
| run_nlp_tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.12" | |
| enable-cache: true | |
| - name: Install IPOPT (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y coinor-libipopt-dev liblapack-dev libblas-dev | |
| - name: Install IPOPT (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install ipopt | |
| - name: Install dependencies | |
| run: | | |
| uv venv | |
| uv pip install -e ".[testing]" | |
| uv pip install cyipopt | |
| - name: Print installed solvers | |
| run: uv run python -c "import cvxpy; print(cvxpy.installed_solvers())" | |
| - name: Run nlp tests | |
| run: uv run pytest -s -v cvxpy/tests/nlp_tests/ |