fixes path to instances #6
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
name: Tests | |
on: | |
push: | |
branches: [ "*", "!gh-pages" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
modeling: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download Eigen | |
run: wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2 | |
- name: Install Eigen | |
run: tar -xvf eigen*.tar.bz2 && rm eigen*.tar.bz2 && find . -depth -type d -name eigen-* -execdir mv {} ${{github.workspace}}/Eigen \; | |
- name: Install lcov | |
run: sudo apt-get install lcov | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DBUILD_TESTS=YES -DWITH_TEST_COVERAGE=YES -DUSE_EIGEN=YES -DEIGEN_DIR=${{github.workspace}}/Eigen | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build | |
- name: Test | |
working-directory: ${{github.workspace}}/build/tests | |
run: ./modeling/test_modeling_interface | |
- name: Build coverage report | |
run: lcov --directory . --capture --output-file coverage.info | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: coverage.info | |
flags: modeling | |
Mosek: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
test: | |
- "branch-and-bound/test_bab_knapsack_Mosek" | |
- "branch-and-bound/test_bab_location_Mosek" | |
- "branch-and-price/test_bap_assignment_Mosek" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download Eigen | |
run: wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2 | |
- name: Install Eigen | |
run: tar -xvf eigen*.tar.bz2 && rm eigen*.tar.bz2 && find . -depth -type d -name eigen-* -execdir mv {} ${{github.workspace}}/Eigen \; | |
- name: Download Mosek | |
run: wget https://download.mosek.com/stable/10.0.40/mosektoolslinux64x86.tar.bz2 | |
- name: Install Mosek | |
run: tar -xvf mosektoolslinux64x86.tar.bz2 -C ${{github.workspace}} && (cd ${{github.workspace}}/mosek/10.0/tools/platform/linux64x86/src/fusion_cxx && make install) | |
- name: Install Mosek license | |
run: 'echo "${MOSEK_LICENSE}" | base64 --decode > ${{github.workspace}}/mosek/mosek.lic' | |
env: | |
MOSEK_LICENSE: ${{secrets.MOSEK_LICENSE}} | |
- name: Install lcov | |
run: sudo apt-get install lcov | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DBUILD_TESTS=YES -DWITH_TEST_COVERAGE=YES -DUSE_EIGEN=YES -DEIGEN_DIR=${{github.workspace}}/Eigen -DUSE_MOSEK=YES -DUSE_EIGEN=YES -DMOSEK_DIR=${{github.workspace}}/mosek/10.0/tools/platform/linux64x86 | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ./tests/${{ matrix.test }} | |
env: | |
MOSEKLM_LICENSE_FILE: ${{github.workspace}}/mosek/mosek.lic | |
- name: Build coverage report | |
run: lcov --directory . --capture --output-file coverage.info | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: coverage.info | |
flags: ${{ matrix.test }} | |
GLPK: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
test: | |
- "branch-and-bound/test_bab_knapsack_GLPK" | |
- "branch-and-bound/test_bab_location_GLPK" | |
- "branch-and-price/test_bap_assignment_GLPK" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install lcov | |
run: sudo apt-get install lcov | |
- name: Update apt-get | |
run: sudo apt-get update | |
- name: Install GLPK | |
run: sudo apt-get install glpk-utils libglpk-dev | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DBUILD_TESTS=YES -DWITH_TEST_COVERAGE=YES -DUSE_GLPK=YES | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ./tests/${{ matrix.test }} | |
- name: Build coverage report | |
run: lcov --directory . --capture --output-file coverage.info | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: coverage.info | |
flags: ${{ matrix.test }} | |
HiGHS: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
test: | |
- "branch-and-bound/test_bab_knapsack_HiGHS" | |
- "branch-and-bound/test_bab_location_HiGHS" | |
- "branch-and-price/test_bap_assignment_HiGHS" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install lcov | |
run: sudo apt-get install lcov | |
- name: Download HiGHS | |
run: git clone https://github.com/ERGO-Code/HiGHS.git | |
- name: Install HiGHS | |
run: mkdir HiGHS/build && cd HiGHS/build && cmake .. && make && sudo make install | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DBUILD_TESTS=YES -DWITH_TEST_COVERAGE=YES -DUSE_HIGHS=YES | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ./tests/${{ matrix.test }} | |
- name: Build coverage report | |
run: lcov --directory . --capture --output-file coverage.info | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: coverage.info | |
flags: ${{ matrix.test }} |