Skip to content

Commit e9bdae2

Browse files
committed
improve knitro CI setup.
1 parent 3efc35e commit e9bdae2

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

.github/actions/setup_optimizers_linux/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,8 @@ runs:
189189
run: |
190190
echo "$KNITRO_LICENSE" > ${HOME}/artelys_lic.txt
191191
echo "ARTELYS_LICENSE=${HOME}/artelys_lic.txt" >> $GITHUB_ENV
192+
- name: Install KNITRO (using pip)
193+
if: ${{ inputs.KNITRO_LICENSE != '' }}
194+
shell: bash
195+
run: |
196+
python -m pip install knitro

.github/actions/setup_optimizers_macos/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,8 @@ runs:
187187
run: |
188188
echo "$KNITRO_LICENSE" > ~/artelys_lic.txt
189189
echo "ARTELYS_LICENSE=${HOME}/artelys_lic.txt" >> $GITHUB_ENV
190+
- name: Install KNITRO (using pip)
191+
if: ${{ inputs.KNITRO_LICENSE != '' }}
192+
shell: bash
193+
run: |
194+
python -m pip install knitro

.github/actions/setup_optimizers_windows/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,8 @@ runs:
159159
# setup license using secrets
160160
echo $env:KNITRO_LICENSE > D:\artelys_lic.txt
161161
echo "ARTELYS_LICENSE=D:\artelys_lic.txt" >> $env:GITHUB_ENV
162+
- name: Install KNITRO (using pip)
163+
if: ${{ inputs.KNITRO_LICENSE != '' }}
164+
shell: pwsh
165+
run: |
166+
python -m pip install knitro

.github/workflows/linux-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ jobs:
5252
5353
- name: Test
5454
run: |
55-
export ARTELYS_LICENSE_DEBUG=1
56-
python -m pip install pytest numpy scipy highsbox llvmlite tccbox knitro
55+
python -m pip install pytest numpy scipy highsbox llvmlite tccbox
5756
python -m pytest tests -v
5857
5958
- name: Upload artifact

.github/workflows/macos-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
5050
- name: Test
5151
run: |
52-
python -m pip install pytest numpy scipy highsbox llvmlite tccbox knitro
52+
python -m pip install pytest numpy scipy highsbox llvmlite tccbox
5353
python -m pytest tests -k "highs or ipopt" -v
5454
5555
- name: Upload artifact

.github/workflows/windows-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
5050
- name: Test
5151
run: |
52-
python -m pip install pytest numpy scipy highsbox llvmlite tccbox knitro
52+
python -m pip install pytest numpy scipy highsbox llvmlite tccbox
5353
python -m pytest tests -v
5454
5555
- name: Upload artifact

0 commit comments

Comments
 (0)