-
Notifications
You must be signed in to change notification settings - Fork 357
67 lines (56 loc) · 1.74 KB
/
Copy pathtest-python-macos.yml
File metadata and controls
67 lines (56 loc) · 1.74 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: test-python-macos
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
python: [3.14]
steps:
- uses: actions/checkout@v6
- name: Install correct python version
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
- name: Install pytest
run: python3 -m pip install pytest
- name: Test Python Interface
run: |
python3 -m pip install .
pytest -v ./highspy
- name: Test Python Examples
run: |
python3 ./examples/call_highs_from_python_highspy.py
python3 ./examples/call_highs_from_python_mps.py
python3 ./examples/call_highs_from_python.py
python3 ./examples/minimal.py
build_hipo:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
python: [3.12]
steps:
- uses: actions/checkout@v6
- name: Install correct python version
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
- name: Install test dependencies
run: python3 -m pip install pytest
- name: Test Python Interface
run: |
python3 -m pip install -v ./highspy-extras
python3 -m pip install .
pytest -v ./highspy
pytest check/test_highspy_hipo.py
- name: Test Python Examples
run: |
python3 ./examples/call_highs_from_python_highspy.py
python3 ./examples/call_highs_from_python_mps.py
python3 ./examples/call_highs_from_python.py
python3 ./examples/minimal.py