Skip to content

Commit e8b51a0

Browse files
committed
added sdist to build workflows and also a test for all three OS
1 parent 12cbe21 commit e8b51a0

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: test-python-install-sdist
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build_sdist:
7+
runs-on: ${{ matrix.os }}
8+
matrix:
9+
os: [ubuntu-latest, macos-latest]
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Build sdist
15+
shell: bash
16+
run: pipx run build --sdist
17+
18+
- name: check metadata
19+
run: pipx run twine check dist/*
20+
21+
- name: install highspy
22+
run: python3 -m pip install dist/highspy*
23+
24+
- name: Test Python Examples
25+
run: |
26+
python3 ./examples/call_highs_from_python_highspy.py
27+
python3 ./examples/call_highs_from_python_mps.py
28+
python3 ./examples/call_highs_from_python.py
29+
python3 ./examples/minimal.py
30+
31+
build_sdist_win:
32+
runs-on: windows-latest
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- name: Build sdist
38+
shell: bash
39+
run: pipx run build --sdist
40+
41+
- name: check metadata
42+
run: pipx run twine check dist/*
43+
44+
- name: install highspy
45+
run: python -m pip install dist/highspy*
46+
47+
- name: Test Python Examples
48+
run: |
49+
python ./examples/call_highs_from_python_highspy.py
50+
python ./examples/call_highs_from_python_mps.py
51+
python ./examples/call_highs_from_python.py
52+
python ./examples/minimal.py

0 commit comments

Comments
 (0)