forked from cvxpy/cvxpy
-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (48 loc) · 1.18 KB
/
Copy pathtest_nlp_solvers.yml
File metadata and controls
49 lines (48 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: test_nlp_solvers
on:
pull_request:
push:
branches:
- master
tags:
- '*'
jobs:
run_nlp_tests:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- uses: actions/checkout@v5
with:
submodules: recursive
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: nlp-test
python-version: 3.12
channels: conda-forge
channel-priority: strict
auto-update-conda: true
miniforge-version: latest
use-mamba: true
- name: Install cyipopt via conda
run: |
conda install -y -c conda-forge cyipopt
- name: Install uno via pip
run: |
pip install unopy
- name: Install test dependencies
run: |
pip install -e .
pip install pytest hypothesis
- name: Run nlp tests
run: |
pytest cvxpy/tests/nlp_tests/.