From d3a12b293afafd48ee827a36195f33c0526d6529 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 3 Oct 2024 10:51:05 -0400 Subject: [PATCH] ci: add 3.13 wheels Signed-off-by: Henry Schreiner --- .github/workflows/release.yml | 7 +++---- .github/workflows/test.yml | 7 ++++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee157f2f..23dfb20b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.12' - if: ${{ github.ref == 'refs/heads/main' }} run: | @@ -44,7 +44,7 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-13, macos-14] arch: [auto, aarch64] - py: [cp39, cp310, cp311, cp312] + py: [cp39, cp310, cp311, cp312, cp313] exclude: - os: windows-latest arch: aarch64 @@ -63,7 +63,7 @@ jobs: - uses: yezz123/setup-uv@v4 - - uses: pypa/cibuildwheel@v2.20 + - uses: pypa/cibuildwheel@v2.21 env: CIBW_BUILD: ${{ matrix.py }}-* CIBW_ARCHS: ${{ matrix.arch }} @@ -103,7 +103,6 @@ jobs: permissions: id-token: write attestations: write - contents: read if: ${{ github.ref == 'refs/heads/main' }} steps: - uses: actions/download-artifact@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 263e2841..c37c0a28 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,15 +22,15 @@ jobs: # version number must be string, otherwise 3.10 becomes 3.1 - os: windows-latest python-version: "3.11" - installs: "numpy>=2.0.0rc1" + installs: "numpy>=2" - os: macos-14 python-version: "3.9" installs: "numpy==1.21.0 scipy matplotlib" - os: ubuntu-latest python-version: "pypy-3.9" - os: ubuntu-latest - python-version: "3.12" - installs: "'numpy>=2.0.0rc1' scipy matplotlib" + python-version: "3.13" + installs: "'numpy>=2' scipy matplotlib" fail-fast: false steps: - uses: actions/checkout@v4 @@ -46,6 +46,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true # pip install .[test] is not used here to test minimum (faster) # cov workflow runs all tests - run: uv pip install --system . pytest pytest-xdist ${{ matrix.installs }}