Skip to content

Commit

Permalink
Merge pull request #371 from Gurobi/test_gh_actions
Browse files Browse the repository at this point in the history
Test gh actions
  • Loading branch information
pobonomo authored Nov 10, 2024
2 parents 5aae86d + 067c2c4 commit b02d15b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/PR_license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ jobs:
- name: Test with tox
run: |
tox
tox -e examples
env:
GRB_LICENSE_FILE: ${{ steps.write-license.outputs.grb_license_file }}
GUROBI_VERSION: ${{ matrix.gurobi-version }}
- name: Run Gurobi 12 specific tests
if: ${{ (matrix.gurobi-version == 'gurobi11') && (matrix.python-version == '3.12') }}
env:
GRB_LICENSE_FILE: ${{ steps.write-license.outputs.grb_license_file }}
GUROBI_VERSION: ${{ matrix.gurobi-version }}
run: |
tox -e py312-examples-${{matrix.gurobi-version}}
7 changes: 4 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ jobs:
GUROBI_VERSION: ${{matrix.gurobi-version}}
run: |
tox
- name: Run Gurobi 11 specific tests
if: matrix.gurobi-version == 'gurobi11'
- name: Run Gurobi 12 specific tests
if: ${{ (matrix.gurobi-version == 'gurobi11') && (matrix.python-version == '3.12') }}
env:
GRB_LICENSE_FILE: ${{ steps.write-license.outputs.grb_license_file }}
GUROBI_VERSION: ${{ matrix.gurobi-version }}
run: |
tox -e examples-${{matrix.gurobi-version}}
tox -e py312-examples-${{matrix.gurobi-version}}
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ allowlist_externals = /usr/bin/make
commands =
make html

[testenv:examples-{gurobi10,gurobi11}]
[testenv:{py39,py310,py311,py312}-examples-{gurobi10,gurobi11}]
deps =
-r{toxinidir}/requirements.tox.txt
-r{toxinidir}/requirements.keras.txt
Expand Down

0 comments on commit b02d15b

Please sign in to comment.