Skip to content

BLD: macosx-x86_64 [wheel build] #782

BLD: macosx-x86_64 [wheel build]

BLD: macosx-x86_64 [wheel build] #782

Workflow file for this run

name: macOS tests
on:
push:
branches:
- maintenance/**
pull_request:
branches:
- main
- maintenance/**
permissions:
contents: read # to fetch code (actions/checkout)
env:
INSTALLDIR: "build-install"
CCACHE_DIR: "${{ github.workspace }}/.ccache"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
get_commit_message:
name: Get commit message
uses: ./.github/workflows/commit_message.yml
test_meson:
name: Conda & umfpack/scikit-sparse, fast, py3.11/npAny, spin
needs: get_commit_message
if: >
needs.get_commit_message.outputs.message == 1
&& (github.repository == 'scipy/scipy' || github.repository == '')
runs-on: macos-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659 # v0.8.1
with:
pixi-version: v0.55.0
manifest-path: .github/workflows/pixi.toml
cache: false
- name: Set up ccache
uses: ./.github/ccache
with:
workflow_name: ${{ github.workflow }}
- name: Test SciPy
shell: bash -l {0}
working-directory: .github/workflows
run: |
rm -rf ../../subprojects/boost_math # so will fail if system boost doesn't work
rm -rf ../../subprojects/qhull_r # so will fail if system qhull doesn't work
export OMP_NUM_THREADS=2
pixi run test-system-libs -j2
- name: Ccache statistics
shell: bash -l {0}
run: pixi exec ccache -s
test_scipy_openblas:
name: M1 & OpenBLAS, fast, py3.11/npAny, spin
needs: get_commit_message
if: >
needs.get_commit_message.outputs.message == 1
&& (github.repository == 'scipy/scipy' || github.repository == '')
runs-on: macos-14
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659 # v0.8.1
with:
pixi-version: v0.55.0
manifest-path: .github/workflows/pixi.toml
cache: false
- name: Test with scipy-openblas32
working-directory: .github/workflows
run: pixi run test-scipy-openblas
test_accelerate:
name: Accelerate, full, py3.13/npAny, spin
needs: get_commit_message
if: >
needs.get_commit_message.outputs.message == 1
&& (github.repository == 'scipy/scipy' || github.repository == '')
runs-on: macos-15
strategy:
matrix:
environment: [accelerate-lp64, accelerate-ilp64]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659 # v0.8.1
with:
pixi-version: v0.55.0
manifest-path: .github/workflows/pixi.toml
cache: false
- name: Test SciPy
working-directory: .github/workflows
# mpmath tests are too slow for CI
run: pixi run test-${{ matrix.environment }} -m full -- -k "not mpmath"
test_macos_x86_64_accelerate:
name: macos15, x86_64, accelerate
needs: get_commit_message
if: >
needs.get_commit_message.outputs.message == 1
&& (github.repository == 'scipy/scipy' || github.repository == '')
runs-on: macos-15-intel
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
with:
python-version: "3.13"
cache: 'pip'
allow-prereleases: true
- name: Test SciPy
run: |
export FC=gfortran-13
pip install -r requirements/build.txt
pip install -r requirements/dev.txt
spin build --with-accelerate
pip install -r requirements/test.txt
spin test