-
Notifications
You must be signed in to change notification settings - Fork 87
154 lines (153 loc) · 4.58 KB
/
solver-tests.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
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
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 }}
XPRESS_JL_SKIP_LIB_CHECK: "true"
# It's okay to share this secret with other packages because it is the public
# community-xpauth.xpr and not something confidential to JuMP-dev.
XPAUTH_XPR: ${{ secrets.XPAUTH_XPR }}
strategy:
fail-fast: false
matrix:
include:
- package: 'JuMP'
- package: 'Convex'
- package: 'AmplNLWriter'
# - package: 'BARON'
- package: 'Cbc'
- package: 'Clp'
# - package: 'CPLEX'
- package: 'CSDP'
- package: 'DiffOpt'
- package: 'Dualization'
- package: 'ECOS'
- package: 'GLPK'
- package: 'HiGHS'
- package: 'Hypatia'
- package: 'Ipopt'
# - package: 'KNITRO'
- package: 'MiniZinc'
- package: 'MosekTools'
- package: 'MultiObjectiveAlgorithms'
- package: 'Pajarito'
- package: 'ParametricOptInterface'
- package: 'Pavito'
- package: 'PolyJuMP'
- package: 'SCS'
- package: 'SDPA'
# - package: 'SDPLR'
# - package: 'SDPNAL'
# - package: 'SDPT3'
# - package: 'SeduMi'
- package: 'SumOfSquares'
- package: 'Xpress'
# External packages
- package: 'Alpine'
- package: 'BilevelJuMP'
- package: 'CDDLib'
- package: 'Clarabel'
- package: 'COPT'
- package: 'COSMO'
- package: 'DAQP'
- package: 'DisjunctiveProgramming'
- package: 'DSDP'
- package: 'EAGO'
- package: 'InfiniteOpt'
- package: 'Juniper'
- package: 'LinearFractional'
- package: 'Loraine'
- package: 'MathOptSetDistances'
- package: 'NEOSServer'
- package: 'NLopt'
- package: 'OSQP'
- package: 'PATHSolver'
- package: 'Percival'
- package: 'Plasmo'
- package: 'PowerModels'
- package: 'ProxSDP'
- package: 'SCIP'
- package: 'SDDP'
- package: 'SetProg'
- package: 'SparseVariables'
- package: 'SDPAFamily'
- package: 'Tulip'
- package: 'UnitJuMP'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- name: Test
shell: julia --color=yes {0}
run: |
import Pkg
Pkg.develop(Pkg.PackageSpec(; path = pwd()))
if ENV["PACKAGE"] == "Xpress"
write("/opt/xpauth.xpr", ENV["XPAUTH_XPR"])
ENV["XPAUTH_PATH"] = "/opt/xpauth.xpr"
ENV["XPRESS_JL_SKIP_LIB_CHECK"] = true
end
Pkg.develop(ENV["PACKAGE"])
Pkg.build(ENV["PACKAGE"])
Pkg.test(ENV["PACKAGE"])
test-cplex:
name: ${{ matrix.package }}
runs-on: ubuntu-latest
env:
PACKAGE: ${{ matrix.package }}
strategy:
fail-fast: false
matrix:
include:
- package: 'CPLEX'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- name: Test
shell: julia --color=yes {0}
env:
CPLEX_VERSION: '2210'
SECRET_CPLEX_URL_2210: ${{ secrets.SECRET_CPLEX_URL_2210 }}
run: |
import Pkg
Pkg.develop(Pkg.PackageSpec(; path = pwd()))
Pkg.develop(ENV["PACKAGE"])
Pkg.test(ENV["PACKAGE"])
test-gurobi:
name: Gurobi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v1
- shell: bash
env:
WLSLICENSE: ${{ secrets.WLSLICENSE }}
run: |
mkdir -p /opt/gurobi
echo "$WLSLICENSE" > /opt/gurobi/gurobi.lic
- uses: julia-actions/julia-buildpkg@v1
- name: Test
shell: julia --color=yes {0}
run: |
import Pkg
Pkg.develop(Pkg.PackageSpec(; path = pwd()))
Pkg.develop("Gurobi")
Pkg.test("Gurobi")