Skip to content

Commit

Permalink
Check os and python version before installing toulbar2
Browse files Browse the repository at this point in the history
toulbar2 is not available
- on macos + python 3.12
- on windows
  • Loading branch information
nhuet committed Oct 24, 2024
1 parent b939f25 commit bc73ced
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,12 @@ jobs:
- name: Install test dependencies
run: |
wheelfile=$(ls ./dist/discrete_optimization*.whl)
pip install "${wheelfile}[test, quantum, toulbar]"
pip install "${wheelfile}[test, quantum]"
if [ "${{ startsWith(matrix.os, 'windows') || (startsWith(matrix.os, 'macos') && matrix.python-version == '3.12') }}" == true ]; then
echo "install toulbar2"
pip install "${wheelfile}[toulbar]"
python -c "import pytoulbar2"
fi
if [ "${{ matrix.wo_gurobi }}" != "without gurobi" ]; then
echo "install gurobi"
pip install gurobipy
Expand Down

0 comments on commit bc73ced

Please sign in to comment.