- Notifications
You must be signed in to change notification settings - Fork2
Release 0.2.2#17
Workflow file for this run
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:run-cvxpy-tests | |
on:[push] | |
concurrency: | |
group:${{ github.workflow }} | |
cancel-in-progress:true | |
jobs: | |
run-cvxpy-tests: | |
runs-on:ubuntu-22.04 | |
strategy: | |
fail-fast:false | |
matrix: | |
backend:[ regular, multiprecision ] | |
steps: | |
-name:Checkout SDPA Python | |
uses:actions/checkout@v4 | |
with: | |
path:sdpa-python | |
-name:Checkout SDPA Multiprecision (only required for libsdpa_gmp) | |
if:${{ matrix.backend == 'multiprecision' }} | |
uses:actions/checkout@v4 | |
with: | |
path:sdpa-multiprecision | |
repository:sdpa-python/sdpa-multiprecision | |
-name:Build libsdpa | |
if:${{ matrix.backend == 'regular' }} | |
run:source sdpa-python/continuous_integration/build_libsdpa.sh | |
-name:Build libsdpa_gmp | |
if:${{ matrix.backend == 'multiprecision' }} | |
run:source sdpa-python/continuous_integration/build_libsdpa_gmp.sh | |
-name:Install Python | |
uses:actions/setup-python@v4 | |
-name:Install packages via pip and run CVXPY tests | |
run:| | |
cd sdpa-python | |
pip install scipy numpy cvxpy-base pytest | |
pip install . | |
mv sdpap sdpap_bak | |
curl -O https://raw.githubusercontent.com/cvxpy/cvxpy/master/cvxpy/tests/test_conic_solvers.py | |
pytest tests | |
pytest test_conic_solvers.py -k TestSDPA |