Skip to content

Commit

Permalink
CI: run tests with Gurobi separately
Browse files Browse the repository at this point in the history
  • Loading branch information
slivingston committed Oct 1, 2024
1 parent e41fc28 commit 018ceb3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,20 @@ jobs:
export CVXOPT_BUILD_GLPK=1
pip install cvxopt
python -c 'import cvxopt.glpk'
- name: Run all tests, using `cvxopt.glpk`
run: |
set -o posix
echo 'Exported environment variables:'
export -p
cd tests/
pytest \
-v \
--continue-on-collection-errors \
.
- name: Install `gurobipy` (nonfree)
run: |
pip install gurobipy
- name: Run all tests, using `cvxopt.glpk`
- name: Run tests involving nonfree solvers
run: |
set -o posix
echo 'Exported environment variables:'
Expand All @@ -102,4 +112,5 @@ jobs:
pytest \
-v \
--continue-on-collection-errors \
-m nonfree \
.

0 comments on commit 018ceb3

Please sign in to comment.