MAINT: Bump meson version and fix pip installation #138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python release WIP | |
name: test-python-api | |
on: [] | |
#on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
python: [3.9] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
fetch-depth: 0 | |
- name: Install Conda environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-name: highsdev | |
create-args: >- | |
python==${{ matrix.python }} | |
meson | |
pkgconfig | |
ninja | |
zlib | |
cache-environment: true | |
init-shell: >- | |
bash | |
- name: Build and test | |
shell: bash -l {0} | |
run: | | |
meson setup bbdir -Duse_zlib=enabled -Dwith_tests=False -Dhighsint64=False -Dwith_pybind11=True --prefix $CONDA_PREFIX | |
meson install -C bbdir | |
meson compile -C bbdir | |
- name: Test Python Interface | |
shell: bash -l {0} | |
run: | | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/bbdir/src | |
pip install pytest numpy | |
cd highspy | |
cp ../bbdir/highspy/* . | |
pytest -vvv |