@@ -10,10 +10,10 @@ jobs:
10
10
11
11
steps :
12
12
13
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v3
14
14
15
15
- name : Set up Python
16
- uses : actions/setup-python@v1
16
+ uses : actions/setup-python@v3
17
17
with :
18
18
python-version : 3.7
19
19
@@ -36,28 +36,25 @@ jobs:
36
36
strategy :
37
37
fail-fast : false
38
38
matrix :
39
- python-version : ["3.7", "3.8", "3.9", "3.10", pypy3]
40
- os : [macos-latest, ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022]
39
+ # temporarily downgraded to 3.7.9 and 3.8.10 due to a bug https://github.com/actions/setup-python/issues/402
40
+ python-version : ["3.7.9", "3.8.10", "3.9.13", "3.10.4", "pypy-3.9"]
41
+ os : [macos-10.15, macos-11, ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022]
41
42
exclude :
42
- # excludes pypy Windows because only 32 bit pypy is supported.
43
- - os : windows-2019
44
- python-version : pypy3
45
- - os : windows-2022
46
- python-version : pypy3
47
- # temporarily exclude pypy3 on macos
48
- - os : macos-latest
49
- python-version : pypy3
50
- - os : macos-latest
51
- python-version : " 3.10"
43
+ # temporarily exclude pypy3 on mac-os as there failing tests caused by bug on cbc side
44
+ - os : macos-10.15
45
+ python-version : " pypy-3.9"
46
+ - os : macos-11
47
+ python-version : " pypy-3.9"
52
48
53
49
steps :
54
50
55
- - uses : actions/checkout@v2
51
+ - uses : actions/checkout@v3
56
52
57
53
- name : Set up Python ${{ matrix.python-version }}
58
- uses : actions/setup-python@v1
54
+ uses : actions/setup-python@v3
59
55
with :
60
56
python-version : ${{ matrix.python-version }}
57
+ architecture : x64
61
58
62
59
- name : Check python version
63
60
run : python -c "import sys; import platform; print('Python %s implementation %s on %s' % (sys.version, platform.python_implementation(), sys.platform))"
@@ -71,37 +68,33 @@ jobs:
71
68
echo "::set-output name=dir::$(pip cache dir)"
72
69
73
70
- name : pip cache
74
- uses : actions/cache@v2
71
+ uses : actions/cache@v3
75
72
with :
76
73
path : ${{ steps.pip-cache.outputs.dir }}
77
74
key : ${{ runner.os }}-${{ matrix.python-version }}-pythonpip
78
75
79
76
- name : Install dependencies CPython
80
- if : ${{ matrix.python-version != 'pypy3 ' }}
77
+ if : ${{ matrix.python-version != 'pypy-3.9 ' }}
81
78
run : python -m pip install cffi pytest networkx numpy matplotlib gurobipy
82
79
83
80
- name : Install dependencies PyPy
84
- if : ${{ matrix.python-version == 'pypy3' && matrix.os != 'macos-latest ' }}
81
+ if : ${{ matrix.python-version == 'pypy-3.9 ' }}
85
82
run : python -m pip install cffi pytest networkx numpy
86
83
87
- - name : Install dependencies PyPy (macOS)
88
- if : ${{ matrix.python-version == 'pypy3' && matrix.os == 'macos-latest' }}
89
- run : python -m pip install cffi pytest networkx "numpy<=1.18.5"
90
-
91
84
- name : Install mip
92
85
run : python -m pip install .
93
86
94
87
- name : list installed packages
95
88
run : python -m pip list
96
89
97
90
- name : Run tests PyPy
98
- if : ${{ matrix.python-version == 'pypy3 '}}
91
+ if : ${{ matrix.python-version == 'pypy-3.9 '}}
99
92
run : |
100
93
python -m pytest test --verbose --color=yes --doctest-modules --ignore="test/test_gurobi.py"
101
94
python -m pytest mip --verbose --color=yes --doctest-modules --ignore="mip/gurobi.py"
102
95
103
96
- name : Run tests
104
- if : ${{ matrix.python-version != 'pypy3 '}}
97
+ if : ${{ matrix.python-version != 'pypy-3.9 '}}
105
98
run : |
106
99
python -m pytest test --verbose --color=yes --doctest-modules
107
100
python -m pytest mip --verbose --color=yes --doctest-modules --ignore="mip/gurobi.py"
0 commit comments