Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration testing with CVXPY #155

Merged
merged 4 commits into from
Mar 25, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/ci-cvxpy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Integration testing with CVXPY

on:
pull_request:
types: [opened, synchronize]
push:
tags:
- '*'
mkoeppe marked this conversation as resolved.
Show resolved Hide resolved
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 ./cylp

- name: Check out CVXPY
uses: actions/checkout@v2
with:
repository: cvxpy/cvxpy
path: cvxpy

- name: Install CVXPY
run: |
python3 -m pip install ./cvxpy

- name: Test CVXPY
run: |
python3 -m pip install pytest
(cd cvxpy/cvxpy/tests && python3 -m pytest -v .)