Skip to content

Commit

Permalink
Minor bugfix for macOS pipeline testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbolusani committed Sep 18, 2023
1 parent 632ba9d commit 3feb562
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,46 +12,46 @@ on:

jobs:

ubuntu-test:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3

- name: Install dependencies (soplex)
run: |
sudo apt-get update
sudo apt-get install git cmake gcc g++
git clone -b C_interface_update https://github.com/scipopt/soplex.git
cd soplex
mkdir build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=./install
make -j
make install
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Prepare python environment
run: |
python -m pip install --upgrade pip
python -m pip install cython wheel pytest
- name: Install PySoPlex
run: |
export SOPLEX_DIR=${{ runner.workspace }}/PySoPlex/soplex/build/install
python -m pip install .
- name: Run pysoplex tests
run: |
export SOPLEX_DIR=${{ runner.workspace }}/PySoPlex/soplex/build/install
py.test
# ubuntu-test:
# runs-on: ubuntu-20.04
# strategy:
# fail-fast: true
# matrix:
# python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
# steps:
# - uses: actions/checkout@v3
#
# - name: Install dependencies (soplex)
# run: |
# sudo apt-get update
# sudo apt-get install git cmake gcc g++
# git clone -b C_interface_update https://github.com/scipopt/soplex.git
# cd soplex
# mkdir build
# cd build
# cmake ../ -DCMAKE_INSTALL_PREFIX=./install
# make -j
# make install
#
# - name: Setup python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
#
# - name: Prepare python environment
# run: |
# python -m pip install --upgrade pip
# python -m pip install cython wheel pytest
#
# - name: Install PySoPlex
# run: |
# export SOPLEX_DIR=${{ runner.workspace }}/PySoPlex/soplex/build/install
# python -m pip install .
#
# - name: Run pysoplex tests
# run: |
# export SOPLEX_DIR=${{ runner.workspace }}/PySoPlex/soplex/build/install
# py.test

# Windows-test:
# env:
Expand Down Expand Up @@ -142,12 +142,12 @@ jobs:
- name: Install PySoPlex
run: |
export SOPLEX_DIR=${{ runner.workspace }}/PySoPlex/soplex/build/install
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${{ runner.workspace }}/PySoPlex/soplex/build/install/lib
python -m pip install .
- name: Run pysoplex tests
run: |
export SOPLEX_DIR=${{ runner.workspace }}/PySoPlex/soplex/build/install
export DYLD_LIBRARY_PATH=${{ runner.workspace }}/PySoPlex/soplex/build/install/lib:${DYLD_LIBRARY_PATH}
py.test
# ### if you need valgrind on mac, you can install it via
Expand Down

0 comments on commit 3feb562

Please sign in to comment.