88 strategy :
99 matrix :
1010 os : [macos-latest]
11- python : [3.11 ]
11+ python : [3.12 ]
1212 steps :
1313 - uses : actions/checkout@v4
1414 - name : Install correct python version
@@ -17,16 +17,78 @@ jobs:
1717 python-version : ${{ matrix.python }}
1818
1919 - name : Install build dependencies
20- run : python3 -m pip install numpy setuptools wheel pytest
21-
20+ run : python3 -m pip install numpy wheel pytest
21+
2222 - name : Test Python Interface
2323 run : |
2424 python3 -m pip install .
25- pytest -v
25+ pytest -v -k "not test_hipo"
2626
2727 - name : Test Python Examples
2828 run : |
2929 python3 ./examples/call_highs_from_python_highspy.py
3030 python3 ./examples/call_highs_from_python_mps.py
3131 python3 ./examples/call_highs_from_python.py
3232 python3 ./examples/minimal.py
33+
34+ build_hipo :
35+ runs-on : ${{ matrix.os }}
36+ strategy :
37+ matrix :
38+ os : [macos-latest]
39+ python : [3.12]
40+ steps :
41+ - uses : actions/checkout@v4
42+ - name : Install correct python version
43+ uses : actions/setup-python@v5
44+ with :
45+ python-version : ${{ matrix.python }}
46+
47+ - name : Edit pyproject
48+ run : |
49+ ls
50+ METIS_ROOT="${{ runner.workspace }}/installs"
51+ sed -i '' '/cmake\.args = \[/,/\]/{
52+ s/"-DPYTHON_BUILD_SETUP=ON"/"-DPYTHON_BUILD_SETUP=ON",\
53+ "-DHIPO=ON",\
54+ "-DMETIS_ROOT=$METIS_ROOT"/
55+ }' pyproject.toml
56+ cat pyproject.toml
57+
58+ - name : Checkout METIS
59+ uses : actions/checkout@v4
60+ with :
61+ repository : galabovaa/METIS
62+ ref : 521-ts
63+ path : METIS
64+
65+ - name : Create installs dir
66+ working-directory : ${{runner.workspace}}
67+ run : |
68+ mkdir installs
69+ ls
70+
71+ - name : Install METIS
72+ run : |
73+ cmake \
74+ -S $GITHUB_WORKSPACE/METIS \
75+ -B build \
76+ -DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
77+ -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/installs
78+ cmake --build build --parallel
79+ cmake --install build
80+
81+ - name : Install build dependencies
82+ run : python3 -m pip install numpy wheel pytest
83+
84+ - name : Test Python Interface
85+ run : |
86+ python3 -m pip install .
87+ pytest
88+
89+ - name : Test Python Examples
90+ run : |
91+ python3 ./examples/call_highs_from_python_highspy.py
92+ python3 ./examples/call_highs_from_python_mps.py
93+ python3 ./examples/call_highs_from_python.py
94+ python3 ./examples/minimal.py
0 commit comments