Skip to content

Commit

Permalink
Test 3.13 with numpy 1.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentRouvreau committed Feb 10, 2025
1 parent 86cb9b1 commit 70a4969
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 39 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/pip-build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/pip-build-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pip-build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/pip-packaging-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/pip-packaging-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70a4969

Please sign in to comment.