From 6ae2b030b620d5fba51c52cd506d147750374cd9 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 19 Jun 2024 10:05:37 +0100 Subject: [PATCH] Run macOS CI on intel based runners + pin max clang version (#528) --- .github/workflows/ci-osx.yaml | 6 +++--- .github/workflows/wheel.yaml | 4 ++-- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-osx.yaml b/.github/workflows/ci-osx.yaml index de90883f..b5a46c04 100644 --- a/.github/workflows/ci-osx.yaml +++ b/.github/workflows/ci-osx.yaml @@ -1,4 +1,4 @@ -name: OSX CI +name: macOS CI on: [push, pull_request] @@ -8,7 +8,7 @@ concurrency: jobs: build: - runs-on: macos-latest + runs-on: macos-12 strategy: fail-fast: false matrix: @@ -38,7 +38,7 @@ jobs: shell: "bash -l {0}" run: > conda create -n env - c-compiler cxx-compiler 'clang>=12.0.1' + c-compiler cxx-compiler 'clang>=12.0.1,<17' python=${{matrix.python-version}} wheel pip - name: Show info about `env` environment diff --git a/.github/workflows/wheel.yaml b/.github/workflows/wheel.yaml index a9d0dcd8..cb4f2b3e 100644 --- a/.github/workflows/wheel.yaml +++ b/.github/workflows/wheel.yaml @@ -13,14 +13,14 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-latest, windows-latest, macos-12] env: CIBW_TEST_COMMAND: python -c "import numcodecs" CIBW_SKIP: "pp* cp36-* *-musllinux_* *win32 *_i686 *_s390x" CIBW_ARCHS_MACOS: 'x86_64 arm64' CIBW_TEST_SKIP: '*-macosx_arm64' # note: CIBW_ENVIRONMENT is now set in pyproject.toml - + steps: - uses: actions/checkout@v4 with: diff --git a/pyproject.toml b/pyproject.toml index eb620b92..f7c23d2a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ A Python package providing buffer compression and transformation codecs \ for use in data storage and communication applications.""" readme = "README.rst" dependencies = [ - "numpy>=1.7", + "numpy>=1.7,<2", ] requires-python = ">=3.8" dynamic = [