Skip to content

Commit

Permalink
Try numpy<2 instead of explicit version + uplaod wheel before test
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentRouvreau committed Feb 10, 2025
1 parent 70a4969 commit 783d26a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pip-build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
cd src/python
$PYTHON313/bin/python -m build -n -w
auditwheel repair dist/*.whl
- name: Upload linux python wheel
uses: actions/upload-artifact@v4
with:
name: linux python wheel
path: build_313/src/python/wheelhouse/*.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.13
run: |
Expand All @@ -31,8 +36,3 @@ jobs:
$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_313/src/python/wheelhouse/*.whl
14 changes: 7 additions & 7 deletions .github/workflows/pip-build-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
python-version: ["3.13"]
include:
- python-version: "3.13"
numpy-version: "1.26.0"
numpy-version: "2.1.0"
name: Build wheels for Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -51,19 +51,19 @@ jobs:
python -m build -n -w
export PATH="$PATH:`python -m site --user-base`/bin"
delocate-wheel --require-archs universal2 -v dist/*.whl
- name: Upload OSx python wheel
uses: actions/upload-artifact@v4
with:
name: osx python wheel
path: build/src/python/dist/*.whl
# Test ABI compatibility with numpy 1.X
- name: Install and test python wheel
run: |
python -m pip install --user numpy~=${{ matrix.numpy-version }}
python -m pip install --user "numpy<2"
python -m pip install --user pytest build/src/python/dist/*.whl
python -c "import gudhi; print(gudhi.__version__)"
python -m pytest -v src/python/test/test_alpha_complex.py
python -m pytest -v src/python/test/test_delaunay_complex.py
python -m pytest -v src/python/test/test_bottleneck_distance.py
python -m pytest -v src/python/test/test_cubical_complex.py
python -m pytest -v src/python/test/test_rips_complex.py
- name: Upload OSx python wheel
uses: actions/upload-artifact@v4
with:
name: osx python wheel
path: build/src/python/dist/*.whl
12 changes: 6 additions & 6 deletions .github/workflows/pip-build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ jobs:
ls ".\dist\"
cd ".\dist\"
Get-ChildItem *.whl | ForEach-Object{python -m pip install --user $_.Name}
- name: Upload Windows python wheel
uses: actions/upload-artifact@v4
with:
name: windows python wheel
path: build/src/python/dist/*.whl
# Test ABI compatibility with numpy 1.X
- name: Test python wheel
run: |
$ErrorActionPreference = 'Stop'
Get-Location
dir
python -m pip install --user numpy~=${{ matrix.numpy-version }}
python -m pip install --user "numpy<2"
python -m pip install --user pytest
python -c "import gudhi; print(gudhi.__version__)"
python -m pytest -v ".\src\python\test\test_alpha_complex.py"
python -m pytest -v ".\src\python\test\test_delaunay_complex.py"
python -m pytest -v ".\src\python\test\test_bottleneck_distance.py"
python -m pytest -v ".\src\python\test\test_cubical_complex.py"
python -m pytest -v ".\src\python\test\test_rips_complex.py"
- name: Upload Windows python wheel
uses: actions/upload-artifact@v4
with:
name: windows python wheel
path: build/src/python/dist/*.whl

0 comments on commit 783d26a

Please sign in to comment.