diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 293bad82..219ebc31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest ] - python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11" ] + python-version: [ 3.8, 3.9, "3.10", "3.11" ] env: PYTHON_VERSION: ${{ matrix.python-version }} @@ -61,7 +61,7 @@ jobs: # macos-13 runners have intel chips. macos-14 and above # runners have Apple silicon chips. os: [ ubuntu-latest, macos-13, windows-latest ] - python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11", "3.12"] + python-version: [ 3.8, 3.9, "3.10", "3.11", "3.12"] link_mkl: [true, false] env: @@ -89,7 +89,7 @@ jobs: else BLAS_PKGS="blas-devel=*=*openblas" fi - if [[ "$PYTHON_VERSION" == "3.7" ]] || [[ "$PYTHON_VERSION" == "3.8" ]] || [[ "$PYTHON_VERSION" == "3.9" ]]; then + if [[ "$PYTHON_VERSION" == "3.8" ]] || [[ "$PYTHON_VERSION" == "3.9" ]]; then conda install scipy=1.5 numpy=1.19 pytest $BLAS_PKGS pkg-config elif [[ "$PYTHON_VERSION" == "3.10" ]]; then conda install scipy=1.7 numpy=1.21 pytest $BLAS_PKGS pkg-config @@ -100,13 +100,13 @@ jobs: fi - name: Build run: | - if [[ "$PYTHON_VERSION" == "3.7" ]] || [[ "$PYTHON_VERSION" == "3.8" ]]; then + if [[ "$PYTHON_VERSION" == "3.8" ]]; then if [[ "$LINK_MKL" == "true" ]]; then python legacy_setup.py install --scs --mkl else python legacy_setup.py install fi - elif [[ "$PYTHON_VERSION" != "3.7" ]] && [[ "$PYTHON_VERSION" != "3.8" ]]; then + elif [[ "$PYTHON_VERSION" != "3.8" ]]; then python -c "import numpy as np; print('NUMPY BLAS INFOS'); print(np.show_config())" if [[ "$LINK_MKL" == "true" ]]; then python -m pip install --verbose -Csetup-args=-Dlink_mkl=true . @@ -143,8 +143,8 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu-latest, macos-13 ] - python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11", "3.12"] + os: [ ubuntu-latest, macos-13, macos-latest ] + python-version: [ 3.8, 3.9, "3.10", "3.11", "3.12"] env: RUNNER_OS: ${{ matrix.os }} @@ -171,10 +171,6 @@ jobs: CIBW_BUILD: "cp3${{env.PYTHON_SUBVERSION}}-*" CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux*" CIBW_BEFORE_ALL_LINUX: yum install -y openblas-devel - CIBW_BEFORE_ALL_MACOS: > - brew install openblas && - cp -r /usr/local/opt/openblas/lib/* /usr/local/lib && - cp /usr/local/opt/openblas/include/* /usr/local/include CIBW_ENVIRONMENT_MACOS: CFLAGS='-Wno-error=implicit-function-declaration' CIBW_BUILD_VERBOSITY: 3 CIBW_TEST_REQUIRES: pytest