diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index 1a966d3..03176b7 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -11,13 +11,14 @@ jobs: strategy: fail-fast: true matrix: - platform: [windows-2022, ubuntu-latest, macos-13, macos-14] + platform: [windows-latest, ubuntu-latest, macos-15-intel, macos-14] env: CIBW_SKIP: 'pp*' CIBW_ARCHS: 'auto64' CIBW_MANYLINUX_X86_64_IMAGE: 'manylinux_2_28' CIBW_PROJECT_REQUIRES_PYTHON: '>=3.10' CIBW_TEST_REQUIRES: 'pytest' + MACOSX_DEPLOYMENT_TARGET: '14.0' defaults: run: shell: bash -l {0} @@ -25,15 +26,15 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: submodules: true - - name: Set up Python version ${{ matrix.version }} - uses: actions/setup-python@v4 + - name: Set up Python version + uses: actions/setup-python@v6 with: python-version: "3.x" - name: Install OMP (MacOS Intel) - if: matrix.platform == 'macos-13' + if: matrix.platform == 'macos-15-intel' run: | brew install llvm@20 libomp echo "export CC=/usr/local/opt/llvm@20/bin/clang" >> ~/.bashrc @@ -66,7 +67,7 @@ jobs: export PATH="$pythonLocation:$PATH" CIBW_TEST_COMMAND='cd ${pwd}/tmp && python -m pytest tests' echo "CIBW_TEST_COMMAND=${CIBW_TEST_COMMAND}" >> $GITHUB_ENV - python -m pip install cibuildwheel==2.16.5 + python -m pip install cibuildwheel==2.23.3 python -m cibuildwheel --output-dir ./wheelhouse - uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index c201806..7dce134 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [windows-2022, ubuntu-latest, macos-13, macos-14] + platform: [windows-latest, ubuntu-latest, macos-15-intel, macos-latest] version: ["3.10", "3.13"] defaults: run: @@ -28,15 +28,15 @@ jobs: runs-on: ${{ matrix.platform}} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: submodules: true - name: Set up Python version ${{ matrix.version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.version }} - name: Install OMP (MacOS Intel) - if: matrix.platform == 'macos-13' + if: matrix.platform == 'macos-15-intel' run: | brew install llvm@20 libomp echo "export CC=/usr/local/opt/llvm@20/bin/clang" >> ~/.bashrc @@ -46,7 +46,7 @@ jobs: echo "export LDFLAGS=\"$LDFLAGS -Wl,-rpath,/usr/local/opt/libomp/lib -L/usr/local/opt/libomp/lib -lomp\"" >> ~/.bashrc source ~/.bashrc - name: Install OMP (MacOS M1) - if: matrix.platform == 'macos-14' + if: matrix.platform == 'macos-latest' run: | brew install llvm@20 libomp echo "export CC=/opt/homebrew/opt/llvm@20/bin/clang" >> ~/.bashrc diff --git a/setup.py b/setup.py index 38947e5..9f70ff7 100644 --- a/setup.py +++ b/setup.py @@ -69,7 +69,7 @@ class BuildExt(build_ext): } if sys.platform == "darwin": - darwin_opts = ["-stdlib=libc++", "-mmacosx-version-min=10.9"] + darwin_opts = ["-stdlib=libc++"] c_opts["unix"] = [*darwin_opts, "-fopenmp", "-O2"] l_opts["unix"] = [*darwin_opts, "-lomp"] diff --git a/tests/conftest.py b/tests/conftest.py index bd35919..854dc9b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,6 +2,9 @@ import tempfile from pathlib import Path +import matplotlib + +matplotlib.use("Agg") import numpy as np import pytest