-
Notifications
You must be signed in to change notification settings - Fork 99
187 lines (187 loc) · 6.29 KB
/
solver-tests.yml
File metadata and controls
187 lines (187 loc) · 6.29 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
name: solver-tests
on:
workflow_dispatch:
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
jobs:
test-ubuntu:
name: ${{ matrix.package }}
runs-on: ubuntu-latest
env:
PACKAGE: ${{ matrix.package }}
strategy:
fail-fast: false
matrix:
include:
- package: 'JuMP'
- package: 'Convex'
- package: 'AmplNLWriter'
- package: 'BARON'
- package: 'Cbc'
- package: 'Clp'
- package: 'CPLEX'
- package: 'CSDP'
- package: 'DiffOpt'
# There are too many issues with this solver to worry about it
# - package: 'DSDP'
- package: 'Dualization'
- package: 'ECOS'
- package: 'GLPK'
- package: 'Gurobi'
- package: 'HiGHS'
- package: 'Hypatia'
- package: 'Ipopt'
- package: 'KNITRO'
- package: 'MiniZinc'
- package: 'MosekTools'
- package: 'MathOptAnalyzer'
- package: 'MathOptIIS'
- package: 'MultiObjectiveAlgorithms'
- package: 'NEOSServer'
- package: 'NLopt'
- package: 'Pajarito'
- package: 'ParametricOptInterface'
- package: 'Pavito'
- package: 'PiecewiseLinearOpt'
- package: 'PolyJuMP'
- package: 'SCS'
- package: 'SDPA'
- package: 'SDPLR'
# - package: 'SDPNAL' # Requires MATLAB
# - package: 'SDPT3' # Requires MATLAB
# - package: 'SeduMi' # Requires MATLAB
- package: 'SumOfSquares'
- package: 'Xpress'
# External packages
- package: 'Alpine'
- package: 'BilevelJuMP'
- package: 'BlockDecomposition'
- package: 'CATrustRegionMethod'
# - package: 'CDCS' # Missing CI
- package: 'CDDLib'
- package: 'Clarabel'
- package: 'Coluna'
- package: 'COPT'
- package: 'COSMO'
- package: 'DAQP'
- package: 'DisjunctiveProgramming'
- package: 'EAGO'
# - package: 'GAMS' # Requires license
- package: 'FrankWolfe'
- package: 'InfiniteOpt'
- package: 'Juniper'
- package: 'LinearFractional'
- package: 'Loraine'
# - package: 'MadNLP' # TODO
- package: 'MAiNGO'
- package: 'Manopt'
- package: 'MathOptAI'
- package: 'MathOptSymbolicAD'
- package: 'MathOptSetDistances'
- package: 'Optim'
- package: 'OSQP'
- package: 'PATHSolver'
- package: 'Percival'
- package: 'Plasmo'
- package: 'PowerModels'
- package: 'ProxSDP'
- package: 'SCIP'
- package: 'SDDP'
- package: 'SetProg'
- package: 'SparseVariables'
- package: 'Tulip'
- package: 'UnitJuMP'
- package: 'UnoSolver'
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v3
- uses: julia-actions/julia-buildpkg@v1
# Setup BARON.jl
- name: Setup BARON
if: ${{ matrix.package == 'BARON' }}
shell: bash
# Writing a multiline string is hard. GitHub says:
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#multiline-strings
#
# For multiline strings, you may use a delimiter with the following syntax.
#
# {name}<<{delimiter}
# {value}
# {delimiter}
#
# Their example goes on to use 'EOF' as the delimiter, which works so
# long as 'EOF' does not appear in the string. If you get the error:
#
# Run echo "SECRET_BARON_LICENSE='***
# Error: Unable to process file command 'env' successfully.
# Error: Invalid format '***'
#
# This is the most likely culprit.
run: |
{
echo "SECRET_BARON_LICENSE<<EOF"
echo "${{ secrets.BARON_LICENSE }}"
echo "EOF"
} >> $GITHUB_ENV
# Setup Coluna.jl
- name: Setup Coluna
if: ${{ matrix.package == 'Coluna' }}
shell: julia --color=yes --project=. {0}
run: |
using Pkg
Pkg.add(; url="https://github.com/atoptima/ColunaDemos.jl.git")
# Setup CPLEX.jl
- name: Setup CPLEX
if: ${{ matrix.package == 'CPLEX' }}
shell: bash
run: |
echo "SECRET_CPLEX_URL_2210=${{ secrets.CPLEX_URL_2210 }}" >> $GITHUB_ENV
echo "CPLEX_VERSION=2210" >> $GITHUB_ENV
# Setup Gurobi.jl
- name: Setup Gurobi
if: ${{ matrix.package == 'Gurobi' }}
shell: bash
run: echo "${{ secrets.GUROBI_LICENSE }}" > ~/gurobi.lic
# Setup KNITRO.jl
- name: Setup KNITRO
if: ${{ matrix.package == 'KNITRO' }}
shell: bash
run: echo "${{ secrets.KNITRO_LICENSE }}" > ~/artelys_lic.txt
# Setup MathOptAI.jl
- name: Install Python
if: ${{ matrix.package == 'MathOptAI' }}
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Setup MathOptAI
if: ${{ matrix.package == 'MathOptAI' }}
shell: bash
run: |
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
pip3 install numpy
pip3 install torch_geometric
echo "JULIA_CONDAPKG_BACKEND=Null" >> $GITHUB_ENV
echo "JULIA_PYTHONCALL_EXE=python3" >> $GITHUB_ENV
# Setup Xpress.jl
- name: Setup Xpress
if: ${{ matrix.package == 'Xpress' }}
env:
SECRET_XPRESS_LICENSE: ${{ secrets.XPRESS_LICENSE }}
shell: bash
run: |
echo "${SECRET_XPRESS_LICENSE}" > /opt/xpauth.xpr
echo "XPRESS_JL_SKIP_LIB_CHECK=true" >> $GITHUB_ENV
echo "XPAUTH_PATH=/opt/xpauth.xpr" >> $GITHUB_ENV
- name: Run tests
shell: julia --color=yes {0}
run: |
import Pkg
Pkg.develop(Pkg.PackageSpec(; path = pwd()))
Pkg.develop(ENV["PACKAGE"])
Pkg.build(ENV["PACKAGE"])
Pkg.test(ENV["PACKAGE"])