From 776fdd9796352430a13d78e79f0961270529d9c4 Mon Sep 17 00:00:00 2001 From: Icxolu <10486322+Icxolu@users.noreply.github.com> Date: Tue, 2 Dec 2025 20:13:08 +0100 Subject: [PATCH 1/2] update CI matrix --- .github/workflows/ci.yml | 98 +++++++++++++++++++--------------------- 1 file changed, 47 insertions(+), 51 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69e482c40..9e4581df9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,9 +52,9 @@ jobs: rust-target: "x86_64-unknown-linux-gnu", }, { - os: "macos-15-intel", - python-architecture: "x64", - rust-target: "x86_64-apple-darwin", + os: "macOS-latest", + python-architecture: "arm64", + rust-target: "aarch64-apple-darwin", }, { os: "windows-latest", @@ -70,36 +70,28 @@ jobs: include: # ubuntu-24.04 does not support 3.7 - python-version: 3.7 - platform: - { - os: "ubuntu-22.04", - python-architecture: "x64", - rust-target: "x86_64-unknown-linux-gnu", - } - # Older versions of CPython are not available for AArch64. - - python-version: 3.12 - platform: - { - os: "macOS-latest", - python-architecture: "arm64", - rust-target: "aarch64-apple-darwin", - } + platform: { os: "ubuntu-22.04", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" } + # not available on arm64 macOS, test on x64 + - python-version: 3.7 + platform: { os: "macos-15-intel", python-architecture: "x64", rust-target: "x86_64-apple-darwin" } + - python-version: 3.8 + platform: { os: "macos-15-intel", python-architecture: "x64", rust-target: "x86_64-apple-darwin" } + - python-version: 3.9 + platform: { os: "macos-15-intel", python-architecture: "x64", rust-target: "x86_64-apple-darwin" } exclude: # ubuntu-24.04 does not support 3.7 - python-version: 3.7 - platform: - { - os: "ubuntu-latest", - python-architecture: "x64", - rust-target: "x86_64-unknown-linux-gnu", - } + platform: { os: "ubuntu-latest", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" } + # not available on arm64 macOS + - python-version: 3.7 + platform: { os: "macOS-latest", python-architecture: "arm64", rust-target: "aarch64-apple-darwin" } + - python-version: 3.8 + platform: { os: "macOS-latest", python-architecture: "arm64", rust-target: "aarch64-apple-darwin" } + - python-version: 3.9 + platform: { os: "macOS-latest", python-architecture: "arm64", rust-target: "aarch64-apple-darwin" } + # no 32 bit windows PyPy - python-version: pypy-3.11 - platform: - { - os: "windows-latest", - python-architecture: "x86", - rust-target: "i686-pc-windows-msvc", - } + platform: { os: "windows-latest", python-architecture: "x86", rust-target: "i686-pc-windows-msvc" } steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -133,7 +125,7 @@ jobs: strategy: fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }} matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] # last numpy 1 release for 3.12 platform: [ { @@ -142,9 +134,9 @@ jobs: rust-target: "x86_64-unknown-linux-gnu", }, { - os: "macos-15-intel", - python-architecture: "x64", - rust-target: "x86_64-apple-darwin", + os: "macOS-latest", + python-architecture: "arm64", + rust-target: "aarch64-apple-darwin", }, { os: "windows-latest", @@ -160,21 +152,25 @@ jobs: include: # ubuntu-24.04 does not support 3.7 - python-version: 3.7 - platform: - { - os: "ubuntu-22.04", - python-architecture: "x64", - rust-target: "x86_64-unknown-linux-gnu", - } + platform: { os: "ubuntu-22.04", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" } + # not available on arm64 macOS, test on x64 + - python-version: 3.7 + platform: { os: "macos-15-intel", python-architecture: "x64", rust-target: "x86_64-apple-darwin" } + - python-version: 3.8 + platform: { os: "macos-15-intel", python-architecture: "x64", rust-target: "x86_64-apple-darwin" } + - python-version: 3.9 + platform: { os: "macos-15-intel", python-architecture: "x64", rust-target: "x86_64-apple-darwin" } exclude: # ubuntu-24.04 does not support 3.7 - python-version: 3.7 - platform: - { - os: "ubuntu-latest", - python-architecture: "x64", - rust-target: "x86_64-unknown-linux-gnu", - } + platform: { os: "ubuntu-latest", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" } + # not available on arm64 macOS + - python-version: 3.7 + platform: { os: "macOS-latest", python-architecture: "arm64", rust-target: "aarch64-apple-darwin" } + - python-version: 3.8 + platform: { os: "macOS-latest", python-architecture: "arm64", rust-target: "aarch64-apple-darwin" } + - python-version: 3.9 + platform: { os: "macOS-latest", python-architecture: "arm64", rust-target: "aarch64-apple-darwin" } steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -206,7 +202,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - uses: messense/maturin-action@v1 with: target: aarch64 @@ -220,7 +216,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 continue-on-error: true @@ -238,7 +234,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - uses: dtolnay/rust-toolchain@nightly - uses: Swatinem/rust-cache@v2 continue-on-error: true @@ -254,7 +250,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - name: Install Rust uses: dtolnay/rust-toolchain@1.74 - uses: Swatinem/rust-cache@v2 @@ -294,7 +290,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - name: Install OpenBLAS run: sudo apt install --yes libopenblas-dev - name: Install Rust @@ -314,7 +310,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - name: Install numpy run: pip install "numpy" ml_dtypes - uses: Swatinem/rust-cache@v2 From b63b039c9d764bf60562b4a8ba57c7e86c4c3347 Mon Sep 17 00:00:00 2001 From: Icxolu <10486322+Icxolu@users.noreply.github.com> Date: Tue, 2 Dec 2025 20:38:49 +0100 Subject: [PATCH 2/2] bump actions --- .github/workflows/ci.yml | 36 +++++++++++++++++------------------ .github/workflows/doc.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e4581df9..9b0b66ab9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy @@ -93,9 +93,9 @@ jobs: - python-version: pypy-3.11 platform: { os: "windows-latest", python-architecture: "x86", rust-target: "i686-pc-windows-msvc" } steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} architecture: ${{ matrix.platform.python-architecture }} @@ -172,9 +172,9 @@ jobs: - python-version: 3.9 platform: { os: "macOS-latest", python-architecture: "arm64", rust-target: "aarch64-apple-darwin" } steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} architecture: ${{ matrix.platform.python-architecture }} @@ -199,8 +199,8 @@ jobs: runs-on: ubuntu-latest needs: [lint, check-msrv, examples] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: "3.14" - uses: messense/maturin-action@v1 @@ -213,8 +213,8 @@ jobs: runs-on: ubuntu-latest needs: [lint, check-msrv, examples] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: "3.14" - uses: dtolnay/rust-toolchain@stable @@ -231,8 +231,8 @@ jobs: runs-on: ubuntu-latest needs: [lint, check-msrv, examples] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: "3.14" - uses: dtolnay/rust-toolchain@nightly @@ -246,9 +246,9 @@ jobs: check-msrv: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: "3.14" - name: Install Rust @@ -287,8 +287,8 @@ jobs: examples: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: "3.14" - name: Install OpenBLAS @@ -307,8 +307,8 @@ jobs: runs-on: ubuntu-latest needs: [lint, check-msrv, examples] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: "3.14" - name: Install numpy @@ -323,7 +323,7 @@ jobs: - name: Generate code coverage run: cargo llvm-cov --all-features --codecov --output-path coverage.json - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: file: coverage.json token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 04e2938fa..e83c11344 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -9,7 +9,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: Build the doc run: | cargo doc --all-features --no-deps diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72ad42398..3b31c8217 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: id-token: write steps: - name: Checkout repository - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: # The tag to build or the tag received by the tag event ref: ${{ github.event.inputs.version || github.ref }}