-
Notifications
You must be signed in to change notification settings - Fork 69
50 lines (40 loc) · 1.37 KB
/
ci-cvxpy.yml
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
50
name: Integration testing with CVXPY
on:
pull_request:
types: [opened, synchronize]
push:
workflow_dispatch:
concurrency:
# Cancel previous runs of this workflow for the same branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [macos-latest] # Add ubuntu-latest when cvxpy pytest issue is solved
runs-on: ${{ matrix.os }}
steps:
- name: Install CBC
run: |
brew install coin-or-tools/coinor/cbc
echo "PKG_CONFIG_PATH=$(brew --prefix)/opt/cbc/lib/pkgconfig:$(brew --prefix)/opt/clp/lib/pkgconfig:$(brew --prefix)/opt/cgl/lib/pkgconfig:$(brew --prefix)/opt/osi/lib/pkgconfig:$(brew --prefix)/opt/coinutils/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
- uses: actions/checkout@v2
with:
path: cylp
- name: Install CyLP
run: |
python3 -m pip install --break-system-packages ./cylp
- name: Check out CVXPY
uses: actions/checkout@v2
with:
repository: cvxpy/cvxpy
path: cvxpy
- name: Install CVXPY
run: |
python3 -m pip install --break-system-packages ./cvxpy
- name: Test CVXPY
run: |
python3 -m pip install --break-system-packages pytest
(cd cvxpy/cvxpy/tests && python3 -m pytest -v .)