|
1 | 1 | name: Integration test
|
2 | 2 |
|
3 | 3 | env:
|
4 |
| - version: 7.0.3 |
| 4 | + version: 8.0.0 |
5 | 5 |
|
6 | 6 | # runs on branches and pull requests; doesn't run on tags.
|
7 | 7 | on:
|
|
13 | 13 | jobs:
|
14 | 14 |
|
15 | 15 | Integration-test:
|
16 |
| - runs-on: ubuntu-18.04 |
| 16 | + runs-on: ubuntu-20.04 |
17 | 17 | strategy:
|
18 | 18 | fail-fast: true
|
19 | 19 | matrix:
|
@@ -83,58 +83,58 @@ jobs:
|
83 | 83 | run: |
|
84 | 84 | py.test
|
85 | 85 |
|
86 |
| -# MacOS-test: |
87 |
| -# runs-on: macos-latest |
88 |
| -# strategy: |
89 |
| -# matrix: |
90 |
| -# python-version: [3.8, 3.9] |
91 |
| -# steps: |
92 |
| -# - uses: actions/checkout@v2 |
93 |
| -# |
94 |
| -# - name: Cache dependencies (SCIPOptSuite) |
95 |
| -# id: cache-scip |
96 |
| -# uses: actions/cache@v2 |
97 |
| -# with: |
98 |
| -# path: | |
99 |
| -# ${{ runner.workspace }}/scipoptsuite |
100 |
| -# ~/Library/Caches/Homebrew/tbb@2020--* |
101 |
| -# /usr/local/opt/tbb@2020* |
102 |
| -# ~/Library/Caches/Homebrew/downloads/*--tbb@2020-* |
103 |
| -# ~/Library/Caches/Homebrew/boost--* |
104 |
| -# /usr/local/opt/boost* |
105 |
| -# ~/Library/Caches/Homebrew/downloads/*--boost-* |
106 |
| -# key: ${{ runner.os }}-scipopt-${{ env.version }}-${{ hashFiles('**/lockfiles') }} |
107 |
| -# restore-keys: | |
108 |
| -# ${{ runner.os }}-scipopt-${{ env.version }}- |
109 |
| -# |
110 |
| -# - name: Install dependencies (SCIPOptSuite) |
111 |
| -# if: steps.cache-scip.outputs.cache-hit != 'true' |
112 |
| -# run: | |
113 |
| -# brew install tbb@2020 boost |
114 |
| -# wget --quiet --no-check-certificate https://scipopt.org/download/release/scipoptsuite-${{ env.version }}.tgz |
115 |
| -# tar xfz scipoptsuite-${{ env.version }}.tgz |
116 |
| -# cd scipoptsuite-${{ env.version }} |
117 |
| -# mkdir build |
118 |
| -# cd build |
119 |
| -# cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/scipoptsuite -DIPOPT=off -DSYM=none -DTPI=tny -DREADLINE=off -DTBB_LIBRARY_DIR=/usr/local/opt/tbb@2020/lib |
120 |
| -# make install -j |
121 |
| -# |
122 |
| -# - name: Setup python ${{ matrix.python-version }} |
123 |
| -# uses: actions/setup-python@v2 |
124 |
| -# with: |
125 |
| -# python-version: ${{ matrix.python-version }} |
126 |
| -# |
127 |
| -# - name: Prepare python environment |
128 |
| -# run: | |
129 |
| -# python -m pip install --upgrade pip |
130 |
| -# python -m pip install wheel cython networkx pytest-cov pytest |
131 |
| -# |
132 |
| -# - name: Install PySCIPOpt |
133 |
| -# run: | |
134 |
| -# export SCIPOPTDIR=${{ runner.workspace }}/scipoptsuite/ |
135 |
| -# export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${{ runner.workspace }}/scipoptsuite/lib |
136 |
| -# python -m pip install . |
137 |
| -# |
| 86 | + MacOS-test: |
| 87 | + runs-on: macos-latest |
| 88 | + strategy: |
| 89 | + matrix: |
| 90 | + python-version: [3.8, 3.9] |
| 91 | + steps: |
| 92 | + - uses: actions/checkout@v2 |
| 93 | + |
| 94 | + - name: Cache dependencies (SCIPOptSuite) |
| 95 | + id: cache-scip |
| 96 | + uses: actions/cache@v2 |
| 97 | + with: |
| 98 | + path: | |
| 99 | + ${{ runner.workspace }}/scipoptsuite |
| 100 | + ~/Library/Caches/Homebrew/tbb@2020--* |
| 101 | + /usr/local/opt/tbb@2020* |
| 102 | + ~/Library/Caches/Homebrew/downloads/*--tbb@2020-* |
| 103 | + ~/Library/Caches/Homebrew/boost--* |
| 104 | + /usr/local/opt/boost* |
| 105 | + ~/Library/Caches/Homebrew/downloads/*--boost-* |
| 106 | + key: ${{ runner.os }}-scipopt-${{ env.version }}-${{ hashFiles('**/lockfiles') }} |
| 107 | + restore-keys: | |
| 108 | + ${{ runner.os }}-scipopt-${{ env.version }}- |
| 109 | +
|
| 110 | + - name: Install dependencies (SCIPOptSuite) |
| 111 | + if: steps.cache-scip.outputs.cache-hit != 'true' |
| 112 | + run: | |
| 113 | + brew install tbb@2020 boost bison |
| 114 | + wget --quiet --no-check-certificate https://scipopt.org/download/release/scipoptsuite-${{ env.version }}.tgz |
| 115 | + tar xfz scipoptsuite-${{ env.version }}.tgz |
| 116 | + cd scipoptsuite-${{ env.version }} |
| 117 | + mkdir build |
| 118 | + cd build |
| 119 | + cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/scipoptsuite -DIPOPT=off -DSYM=none -DTPI=tny -DREADLINE=off -DTBB_LIBRARY_DIR=/usr/local/opt/tbb@2020/lib |
| 120 | + make install -j |
| 121 | +
|
| 122 | + - name: Setup python ${{ matrix.python-version }} |
| 123 | + uses: actions/setup-python@v2 |
| 124 | + with: |
| 125 | + python-version: ${{ matrix.python-version }} |
| 126 | + |
| 127 | + - name: Prepare python environment |
| 128 | + run: | |
| 129 | + python -m pip install --upgrade pip |
| 130 | + python -m pip install wheel cython networkx pytest-cov pytest |
| 131 | +
|
| 132 | + - name: Install PySCIPOpt |
| 133 | + run: | |
| 134 | + export SCIPOPTDIR=${{ runner.workspace }}/scipoptsuite/ |
| 135 | + export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${{ runner.workspace }}/scipoptsuite/lib |
| 136 | + python -m pip install . |
| 137 | +
|
138 | 138 | # - name: Run pyscipopt tests
|
139 | 139 | # run: |
|
140 | 140 | # export SCIPOPTDIR=${{ runner.workspace }}/scipoptsuite/
|
|
0 commit comments