Skip to content

Commit b323a79

Browse files
authored
Add Gurobi to solver-tests.yml (#2332)
1 parent 0c08da4 commit b323a79

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/solver-tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,38 @@ jobs:
110110
Pkg.develop(Pkg.PackageSpec(; path = pwd()))
111111
Pkg.develop(ENV["PACKAGE"])
112112
Pkg.test(ENV["PACKAGE"])
113+
test-gurobi:
114+
name: Gurobi
115+
runs-on: ubuntu-latest
116+
steps:
117+
- uses: actions/checkout@v3
118+
- uses: julia-actions/setup-julia@v1
119+
with:
120+
version: '1'
121+
- uses: actions/cache@v1
122+
env:
123+
cache-name: cache-artifacts
124+
with:
125+
path: ~/.julia/artifacts
126+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
127+
restore-keys: |
128+
${{ runner.os }}-test-${{ env.cache-name }}-
129+
${{ runner.os }}-test-
130+
${{ runner.os }}-
131+
- shell: bash
132+
env:
133+
WLSLICENSE: ${{ secrets.WLSLICENSE }}
134+
run: |
135+
mkdir -p /opt/gurobi
136+
echo "$WLSLICENSE" > /opt/gurobi/gurobi.lic
137+
- uses: julia-actions/julia-buildpkg@v1
138+
- name: Test
139+
shell: julia --color=yes {0}
140+
run: |
141+
import Pkg
142+
Pkg.develop(Pkg.PackageSpec(; path = pwd()))
143+
Pkg.develop("Gurobi")
144+
Pkg.test("Gurobi")
113145
# TODO(odow): enable testing Xpress
114146
# test-windows:
115147
# name: ${{ matrix.package }}

0 commit comments

Comments
 (0)