Skip to content

Commit a4b25ca

Browse files
committed
Simplify test-python CI workflow
1 parent 6bafed3 commit a4b25ca

File tree

4 files changed

+34
-96
lines changed

4 files changed

+34
-96
lines changed

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

Lines changed: 0 additions & 32 deletions
This file was deleted.

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

Lines changed: 0 additions & 32 deletions
This file was deleted.

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

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/test-python.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Python
2+
on:
3+
push:
4+
branches:
5+
- latest
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
jobs:
10+
test:
11+
name: Python ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
include:
15+
- os: macos-latest
16+
python: 3.11
17+
- os: linux-latest
18+
python: 3.11
19+
- os: windows-2022
20+
python: 3.12
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python }}
26+
- run: python3 -m pip install numpy setuptools wheel pytest
27+
- run: |
28+
python3 -m pip install .
29+
pytest -v
30+
- run: |
31+
python3 ./examples/call_highs_from_python_highspy.py
32+
python3 ./examples/call_highs_from_python_mps.py
33+
python3 ./examples/call_highs_from_python.py
34+
python3 ./examples/minimal.py

0 commit comments

Comments
 (0)