11name : Integration test
22
33env :
4- version : 9.2 .0
4+ version : 10.0 .0
55
6- # runs on branches and pull requests; doesn't run on tags.
76on :
87 push :
98 branches :
109 - ' master'
10+ workflow_dispatch :
1111
1212
1313jobs :
@@ -17,14 +17,14 @@ jobs:
1717 strategy :
1818 fail-fast : true
1919 matrix :
20- python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
20+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
2121 steps :
2222 - uses : actions/checkout@v3
2323
2424 - name : Install dependencies (SCIPOptSuite)
2525 run : |
26- wget --quiet --no-check-certificate https://github.com/scipopt/scip/releases/download/$(echo " v${{env. version}}" | tr -d '.')/SCIPOptSuite-${{ env. version }}-Linux-ubuntu20 .deb
27- sudo apt-get update && sudo apt install -y ./SCIPOptSuite-${{ env. version }}-Linux-ubuntu20 .deb
26+ wget --quiet --no-check-certificate " https://github.com/scipopt/scip/releases/download/v${version}/scipoptsuite_${ version}-1+jammy_amd64 .deb"
27+ sudo apt-get update && sudo apt install -y ./scipoptsuite_${ version}-1+jammy_amd64 .deb
2828
2929 - name : Setup python ${{ matrix.python-version }}
3030 uses : actions/setup-python@v4
@@ -34,36 +34,27 @@ jobs:
3434 - name : Prepare python environment
3535 run : |
3636 python -m pip install --upgrade pip
37- if python -m pip help install | grep -q -- '--group'; then
38- python -m pip install --group test-full
39- else
40- python -m pip install networkx pytest-cov numpy
41- fi
37+ python -m pip install -r requirements/test.txt
4238
4339 - name : Install PySCIPOpt
4440 run : python -m pip install .
4541
4642 - name : Run pyscipopt tests
47- run : |
48- if python -m pip help install | grep -q -- '--group'; then
49- py.test -nauto
50- else
51- py.test
52- fi
43+ run : pytest -nauto
5344
5445 Windows-test :
5546 env :
5647 SCIPOPTDIR : C:\scipoptdir
5748 runs-on : windows-latest
5849 strategy :
5950 matrix :
60- python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
51+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
6152 steps :
6253 - uses : actions/checkout@v3
6354
6455 - name : Download dependencies (SCIPOptSuite)
6556 shell : powershell
66- run : wget https://github.com/scipopt/scip/releases/download/$(echo "v${{env.version}}" | tr -d '.')/SCIPOptSuite -${{ env.version }}-win64 .exe -outfile scipopt-installer.exe
57+ run : wget https://github.com/scipopt/scip/releases/download/$(echo "v${{env.version}}" | tr -d '.')/scipoptsuite -${{ env.version }}-win-x64 .exe -outfile scipopt-installer.exe
6758
6859 - name : Install dependencies (SCIPOptSuite)
6960 shell : cmd
7768 - name : Prepare python environment
7869 shell : powershell
7970 run : |
80- $pipHelp = python -m pip help install
81- if ($pipHelp -match '--group') {
82- python -m pip install --group test-full
83- }
84- else {
85- python -m pip install wheel cython networkx pytest-cov
86- }
71+ python -m pip install --upgrade pip
72+ python -m pip install -r requirements/test.txt
8773
8874 - name : Install PySCIPOpt
8975 shell : powershell
@@ -93,29 +79,24 @@ jobs:
9379
9480 - name : Run pyscipopt tests
9581 shell : powershell
96- run : |
97- $pipHelp = python -m pip help install
98- if ($pipHelp -match '--group') {
99- py.test -nauto
100- } else {
101- py.test
102- }
82+ run : pytest -nauto
10383
10484 MacOS-test :
10585 runs-on : macos-latest
10686 strategy :
10787 matrix :
108- python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
88+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
10989 steps :
11090 - uses : actions/checkout@v3
11191
11292 - name : Install dependencies (SCIPOptSuite)
11393 run : |
11494 brew install tbb boost bison
115- wget --quiet --no-check-certificate https://github.com/scipopt/scip/releases/download/$(echo "v${{env.version}}" | tr -d '.')/SCIPOptSuite-${{ env.version }}-Darwin.sh
116- chmod +x SCIPOptSuite-${{ env.version }}-Darwin.sh
117- ./SCIPOptSuite-${{ env.version }}-Darwin.sh --skip-license --include-subdir
118- mv SCIPOptSuite-${{ env.version }}-Darwin ${{ runner.workspace }}/scipoptsuite
95+ wget --quiet --no-check-certificate "https://github.com/scipopt/scip/releases/download/v${version}/scipoptsuite-${version}-macos13-arm64.tgz"
96+ tar xzf "scipoptsuite-${version}-macos13-arm64.tgz"
97+ chmod +x "scipoptsuite-${version}-macos13-arm64.sh"
98+ "./scipoptsuite-${version}-macos13-arm64.sh" --skip-license --include-subdir
99+ mv "scipoptsuite-${version}-macos13-arm64" "${{ github.workspace }}/scipoptsuite"
119100
120101 - name : Setup python ${{ matrix.python-version }}
121102 uses : actions/setup-python@v4
@@ -125,25 +106,20 @@ jobs:
125106 - name : Prepare python environment
126107 run : |
127108 python -m pip install --upgrade pip
128- if python -m pip help install | grep -q -- '--group'; then
129- python -m pip install --group test-full
130- else
131- python -m pip install networkx pytest-cov pytest numpy
132- fi
109+ python -m pip install -r requirements/test.txt
133110
134111 - name : Install PySCIPOpt
135112 run : |
136- export SCIPOPTDIR=${{ runner .workspace }}/scipoptsuite/
137- export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${{ runner .workspace }}/scipoptsuite/lib
113+ export SCIPOPTDIR=${{ github .workspace }}/scipoptsuite/
114+ export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${{ github .workspace }}/scipoptsuite/lib
138115 python -m pip install .
139116
140117# - name: Run pyscipopt tests
141118# run: |
142- # export SCIPOPTDIR=${{ runner .workspace }}/scipoptsuite/
143- # export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${{ runner .workspace }}/scipoptsuite/lib
144- # py.test
119+ # export SCIPOPTDIR=${{ github .workspace }}/scipoptsuite/
120+ # export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${{ github .workspace }}/scipoptsuite/lib
121+ # pytest
145122
146123 # ## if you need valgrind on mac, you can install it via
147124 # brew tap LouisBrunner/valgrind
148125 # brew install --HEAD LouisBrunner/valgrind/valgrind
149-
0 commit comments