Skip to content

Commit

Permalink
Add GHA test
Browse files Browse the repository at this point in the history
  • Loading branch information
metab0t committed Jan 26, 2024
1 parent 41d26f0 commit 4afe803
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ jobs:

- name: Install lessmsi
run: |
choco install lessmsi
curl -L -o D:\lessmsi.zip https://github.com/activescott/lessmsi/releases/download/v1.10.0/lessmsi-v1.10.0.zip
7z x D:\lessmsi.zip -oD:\lessmsi
echo "PATH=$env:PATH;D:\lessmsi" >> $env:GITHUB_ENV
lessmsi h
- name: Create directory to store installers
run: |
Expand Down Expand Up @@ -64,6 +67,12 @@ jobs:
echo "GUROBI_HOME=D:\SourceDir\gurobi1100\win64" >> $env:GITHUB_ENV
echo "PATH=$env:PATH;D:\SourceDir\gurobi1100\win64\bin" >> $env:GITHUB_ENV
echo $env:GUROBI_HOME
# setup license using secrets
echo ${{ secrets.GUROBI_WLS }} > D:\gurobi.lic
echo "GRB_LICENSE_FILE=D:\gurobi.lic" >> $env:GITHUB_ENV
gurobi_cl
- name: Setup COPT Installation
run: |
Expand All @@ -75,6 +84,12 @@ jobs:
echo "PATH=$env:PATH;D:\copt70\bin" >> $env:GITHUB_ENV
echo $env:COPT_HOME
# setup license using secrets
echo ${{ secrets.COPT_CLIENT_INI }} > D:\client.ini
echo "COPT_LICENSE_DIR=D:\" >> $env:GITHUB_ENV
copt_cmd
- name: Setup MOSEK Installation
run: |
lessmsi x D:\installers\mosek.msi "D:\" mosek64_10_1.dll mosek64_10_1.lib
Expand All @@ -85,12 +100,22 @@ jobs:
echo "PATH=$env:PATH;D:\SourceDir\PFiles\Mosek\10.1\tools\platform\win64x86\bin" >> $env:GITHUB_ENV
echo $env:MOSEK_10_1_BINDIR
# setup license using secrets
echo ${{ secrets.MOSEK_LICENSE }} > D:\mosek.lic
echo "MOSEKLM_LICENSE_FILE=D:\mosek.lic" >> $env:GITHUB_ENV
msktestlic
- name: Install python deps
run: |
python -m pip install build pytest
- name: Test
- name: Build
run: |
python -m pip list
python -m pip install -v .
python -c "import pyoptinterface as poi; print(dir(poi))"
- name: Test
run: |
python -m pytest -v
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ PyOptInterface

**PyOptInterface** is an open-source Python library to provide a universal API to construct and solve optimization models with various optimizers.

The key feature compared with other

It currently supports the following optimizers:
- [Gurobi](https://www.gurobi.com/)
- [COPT](https://shanshu.ai/copt)
Expand Down

0 comments on commit 4afe803

Please sign in to comment.