diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4751a85f2..ff4657a12 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -36,11 +36,7 @@ jobs: - name: Prepare python environment run: | python -m pip install --upgrade pip - if python -m pip help install | grep -q -- '--group'; then - python -m pip install --group coverage - else - python -m pip install networkx cython pytest-cov numpy - fi + python -m pip install --group coverage || python -m pip install networkx cython pytest-cov numpy - name: Install PySCIPOpt run: | diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 27966cd51..afe5edfec 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -34,11 +34,7 @@ jobs: - name: Prepare python environment run: | python -m pip install --upgrade pip - if python -m pip help install | grep -q -- '--group'; then - python -m pip install --group test-full - else - python -m pip install networkx pytest-cov numpy - fi + python -m pip install --group test-full || python -m pip install networkx pytest-cov numpy - name: Install PySCIPOpt run: python -m pip install . @@ -74,11 +70,7 @@ jobs: shell: powershell run: | python -m pip install --upgrade pip - if python -m pip help install | grep -q -- '--group'; then - python -m pip install --group test-full - else - python -m pip install networkx pytest-cov numpy - fi + python -m pip install --group test-full || python -m pip install networkx pytest-cov numpy - name: Install PySCIPOpt shell: powershell @@ -115,11 +107,7 @@ jobs: - name: Prepare python environment run: | python -m pip install --upgrade pip - if python -m pip help install | grep -q -- '--group'; then - python -m pip install --group test-full - else - python -m pip install networkx pytest-cov pytest numpy - fi + python -m pip install --group test-full || python -m pip install networkx pytest-cov pytest numpy - name: Install PySCIPOpt run: | diff --git a/.github/workflows/update-packages-and-documentation.yml b/.github/workflows/update-packages-and-documentation.yml index 15813b4e2..856aa7d0d 100644 --- a/.github/workflows/update-packages-and-documentation.yml +++ b/.github/workflows/update-packages-and-documentation.yml @@ -49,11 +49,7 @@ jobs: - name: Prepare python environment run: | python -m pip install --upgrade pip - if python -m pip help install | grep -q -- '--group'; then - python -m pip install --group test-full - else - python -m pip install wheel cython networkx pytest-cov - fi + python -m pip install --group test-full || python -m pip install wheel cython networkx pytest-cov - name: Install PySCIPOpt run: python -m pip install . @@ -90,11 +86,7 @@ jobs: shell: powershell run: | python -m pip install --upgrade pip - if python -m pip help install | grep -q -- '--group'; then - python -m pip install --group test-full - else - python -m pip install wheel cython networkx pytest-cov - fi + python -m pip install --group test-full || python -m pip install wheel cython networkx pytest-cov - name: Install PySCIPOpt shell: powershell run: |