Skip to content

Commit

Permalink
Use the wsl licence
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliabaldini committed Jul 23, 2024
1 parent 7a6685a commit 1e07ce5
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/mypy-flake-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,15 @@ jobs:
## From here (https://github.com/Gurobi/gurobi-machinelearning/blob/main/.github/workflows/push.yml#L41C5-L50C78), thank you!
- name: Install Gurobi
- shell: bash
id: write-license
env:
LICENSE: ${{ secrets.GUROBI_LICENSE }}
run: |
wget https://packages.gurobi.com/11.0/gurobi11.0.3_linux64.tar.gz
tar -xvf gurobi11.0.3_linux64.tar.gz
export GUROBI_HOME="$PWD/gurobi1103/linux64"
export PATH="${PATH}:${GUROBI_HOME}/bin"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"
echo "$GUROBI_HOME" >> $GITHUB_PATH
echo "$LD_LIBRARY_PATH" >> $GITHUB_ENV
grbgetkey ${{ secrets.GUROBI_LICENSE }}
echo "$LICENSE" > $PWD/gurobi.lic
echo "grb_license_file=$PWD/gurobi.lic" >> $GITHUB_OUTPUT
- name: Run tests
env:
GRB_LICENSE_FILE: ${{ steps.write-license.outputs.grb_license_file }}
run: |
poetry run python -m unittest discover tests -v

0 comments on commit 1e07ce5

Please sign in to comment.