-
Notifications
You must be signed in to change notification settings - Fork 33
43 lines (37 loc) · 1.06 KB
/
python-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Run the unit tests against oldest and newest supported python versions, and
# major gurobipy versions.
name: Unit tests
on:
workflow_call:
permissions:
contents: read
jobs:
python-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.12"]
gurobipy: ["~=11.0", "~=12.0"]
#gurobipy: ["~=10.0", "~=11.0", "~=12.0"]
exclude:
- python: "3.12"
gurobipy: "~=10.0"
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install tooling
run: |
python -m pip install --upgrade pip
- name: Install dependencies
run: |
python -m pip install . \
gurobipy${{ matrix.gurobipy }}
- name: Run unittest
run: python -m unittest discover -b
- name: Install example dependencies
run: python -m pip install .[examples]
- name: Run additional tests
run: python -m unittest discover -b