From 70a496987db5fa4016a85bb1ba3adcfaf8892027 Mon Sep 17 00:00:00 2001 From: Vincent Rouvreau Date: Mon, 10 Feb 2025 11:01:01 +0100 Subject: [PATCH] Test 3.13 with numpy 1.26.0 --- .github/workflows/pip-build-linux.yml | 30 ++++++++++----------- .github/workflows/pip-build-osx.yml | 6 ++--- .github/workflows/pip-build-windows.yml | 6 ++--- .github/workflows/pip-packaging-osx.yml | 20 +++++++------- .github/workflows/pip-packaging-windows.yml | 20 +++++++------- 5 files changed, 43 insertions(+), 39 deletions(-) diff --git a/.github/workflows/pip-build-linux.yml b/.github/workflows/pip-build-linux.yml index 2bfa253ad6..327724dbdf 100644 --- a/.github/workflows/pip-build-linux.yml +++ b/.github/workflows/pip-build-linux.yml @@ -12,27 +12,27 @@ jobs: - uses: actions/checkout@v4 with: submodules: true - - name: Build wheel for Python 3.9 + - name: Build wheel for Python 3.13 run: | - mkdir build_39 - cd build_39 - cmake -DCMAKE_BUILD_TYPE=Release -DPython_EXECUTABLE=$PYTHON39/bin/python .. + mkdir build_313 + cd build_313 + cmake -DCMAKE_BUILD_TYPE=Release -DPython_EXECUTABLE=$PYTHON313/bin/python .. cd src/python - $PYTHON39/bin/python -m build -n -w + $PYTHON313/bin/python -m build -n -w auditwheel repair dist/*.whl # NumPy 2.X is installed and guarantees ABI compatibility, test it with the minimal numpy version for python version - - name: Install and test wheel for Python 3.9 + - name: Install and test wheel for Python 3.13 run: | - $PYTHON39/bin/python -m pip install --user pytest build_39/src/python/dist/*.whl - $PYTHON39/bin/python -m pip install numpy~=1.19.3 - $PYTHON39/bin/python -c "import gudhi; print(gudhi.__version__)" - $PYTHON39/bin/python -m pytest -v src/python/test/test_alpha_complex.py - $PYTHON39/bin/python -m pytest -v src/python/test/test_delaunay_complex.py - $PYTHON39/bin/python -m pytest -v src/python/test/test_bottleneck_distance.py - $PYTHON39/bin/python -m pytest -v src/python/test/test_cubical_complex.py - $PYTHON39/bin/python -m pytest -v src/python/test/test_rips_complex.py + $PYTHON313/bin/python -m pip install --user pytest build_313/src/python/dist/*.whl + $PYTHON313/bin/python -m pip install numpy~=1.26.0 + $PYTHON313/bin/python -c "import gudhi; print(gudhi.__version__)" + $PYTHON313/bin/python -m pytest -v src/python/test/test_alpha_complex.py + $PYTHON313/bin/python -m pytest -v src/python/test/test_delaunay_complex.py + $PYTHON313/bin/python -m pytest -v src/python/test/test_bottleneck_distance.py + $PYTHON313/bin/python -m pytest -v src/python/test/test_cubical_complex.py + $PYTHON313/bin/python -m pytest -v src/python/test/test_rips_complex.py - name: Upload linux python wheel uses: actions/upload-artifact@v4 with: name: linux python wheel - path: build_39/src/python/wheelhouse/*.whl + path: build_313/src/python/wheelhouse/*.whl diff --git a/.github/workflows/pip-build-osx.yml b/.github/workflows/pip-build-osx.yml index 5334ce178d..928b402ca8 100644 --- a/.github/workflows/pip-build-osx.yml +++ b/.github/workflows/pip-build-osx.yml @@ -14,10 +14,10 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ['3.9'] + python-version: ["3.13"] include: - - python-version: '3.9' - numpy-version: '1.21.4' + - python-version: "3.13" + numpy-version: "1.26.0" name: Build wheels for Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/pip-build-windows.yml b/.github/workflows/pip-build-windows.yml index 29cff1e507..09c5723e3e 100644 --- a/.github/workflows/pip-build-windows.yml +++ b/.github/workflows/pip-build-windows.yml @@ -8,10 +8,10 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ['3.9'] + python-version: ["3.13"] include: - - python-version: '3.9' - numpy-version: '1.19.3' + - python-version: "3.13" + numpy-version: "1.26.0" name: Build wheels for Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/pip-packaging-osx.yml b/.github/workflows/pip-packaging-osx.yml index 563e08cb13..e2a4c1eaf1 100644 --- a/.github/workflows/pip-packaging-osx.yml +++ b/.github/workflows/pip-packaging-osx.yml @@ -74,16 +74,18 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ['3.9', '3.10', '3.11', '3.12'] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] include: - - python-version: '3.9' - numpy-version: '1.21.4' - - python-version: '3.10' - numpy-version: '1.21.6' - - python-version: '3.11' - numpy-version: '1.23.2' - - python-version: '3.12' - numpy-version: '1.26.0' + - python-version: "3.9" + numpy-version: "1.21.4" + - python-version: "3.10" + numpy-version: "1.21.6" + - python-version: "3.11" + numpy-version: "1.23.2" + - python-version: "3.12" + numpy-version: "1.26.0" + - python-version: "3.13" + numpy-version: "1.26.0" name: Build wheels for Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/pip-packaging-windows.yml b/.github/workflows/pip-packaging-windows.yml index 1470864681..0da3570c86 100644 --- a/.github/workflows/pip-packaging-windows.yml +++ b/.github/workflows/pip-packaging-windows.yml @@ -65,16 +65,18 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ['3.9', '3.10', '3.11', '3.12'] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] include: - - python-version: '3.9' - numpy-version: '1.19.3' - - python-version: '3.10' - numpy-version: '1.21.6' - - python-version: '3.11' - numpy-version: '1.23.2' - - python-version: '3.12' - numpy-version: '1.26.0' + - python-version: "3.9" + numpy-version: "1.19.3" + - python-version: "3.10" + numpy-version: "1.21.6" + - python-version: "3.11" + numpy-version: "1.23.2" + - python-version: "3.12" + numpy-version: "1.26.0" + - python-version: "3.13" + numpy-version: "1.26.0" name: Build wheels for Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v4