Skip to content

Commit

Permalink
Add Gurobi to solver-tests.yml (#2332)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 30, 2023
1 parent 0c08da4 commit b323a79
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/solver-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,38 @@ jobs:
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@v3
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- 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")
# TODO(odow): enable testing Xpress
# test-windows:
# name: ${{ matrix.package }}
Expand Down

0 comments on commit b323a79

Please sign in to comment.