Skip to content

Commit

Permalink
added sdist to build workflows and also a test for all three OS
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Dec 19, 2024
1 parent 12cbe21 commit e8b51a0
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/test-python-install-sdist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: test-python-install-sdist

on: [push, pull_request]

jobs:
build_sdist:
runs-on: ${{ matrix.os }}
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v4

- name: Build sdist
shell: bash
run: pipx run build --sdist

- name: check metadata
run: pipx run twine check dist/*

- name: install highspy
run: python3 -m pip install dist/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_sdist_win:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Build sdist
shell: bash
run: pipx run build --sdist

- name: check metadata
run: pipx run twine check dist/*

- name: install highspy
run: python -m pip install dist/highspy*

- name: Test Python Examples
run: |
python ./examples/call_highs_from_python_highspy.py
python ./examples/call_highs_from_python_mps.py
python ./examples/call_highs_from_python.py
python ./examples/minimal.py

0 comments on commit e8b51a0

Please sign in to comment.