Skip to content

Commit b8eb07e

Browse files
committed
unix
1 parent cab6daf commit b8eb07e

File tree

2 files changed

+71
-12
lines changed

2 files changed

+71
-12
lines changed

.github/workflows/test-python-macos.yml

Lines changed: 66 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
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

.github/workflows/test-python-ubuntu.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest]
11-
python: [3.11]
11+
python: [3.12]
1212
steps:
1313
- uses: actions/checkout@v4
1414
- name: Install correct python version
@@ -22,7 +22,7 @@ jobs:
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: |
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
matrix:
3737
os: [ubuntu-latest]
38-
python: [3.11]
38+
python: [3.12]
3939
steps:
4040
- uses: actions/checkout@v4
4141
- name: Install correct python version
@@ -46,15 +46,12 @@ jobs:
4646
- name: Edit pyproject
4747
run: |
4848
ls
49-
$VCPKG_ROOT = "C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
50-
$METIS_ROOT = "${{ runner.workspace }}/installs"
49+
METIS_ROOT="${{ runner.workspace }}/installs"
5150
sed -i '/cmake\.args = \[/,/\]/{
52-
s/"-DPYTHON_BUILD_SETUP=ON"/"-DPYTHON_BUILD_SETUP=ON",\n \
53-
"-DHIPO=ON",\n "-DMETIS_ROOT=$METIS_ROOT"/
51+
s/"-DPYTHON_BUILD_SETUP=ON"/"-DPYTHON_BUILD_SETUP=ON",\n "-DHIPO=ON",\n "-DMETIS_ROOT=$METIS_ROOT"/
5452
}' pyproject.toml
5553
cat pyproject.toml
5654
57-
5855
- name: Checkout METIS
5956
uses: actions/checkout@v4
6057
with:

0 commit comments

Comments
 (0)