Skip to content

Commit

Permalink
Add build to test against numpy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpre committed Jul 15, 2024
1 parent 65cae83 commit 77e85c7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
DEPENDENCIES_DEV: [false]
DEPENDENCIES_PRE_RELEASE: [false]
DEPENDENCIES_NUMBA_DEV: [false]
DEPENDENCIES_NUMPY2: [false]
USE_MAMBA: [true]
PYTHON_VERSION: ['3.11']
include:
Expand Down Expand Up @@ -60,6 +61,15 @@ jobs:
DEPENDENCIES: numba
USE_MAMBA: true
PYTHON_VERSION: '3.11'
- DEPENDENCIES_NUMPY2: true
# Install numpy 2.0
LABEL: -dependencies_numpy20
HYPERSPY_VERSION: 'RnMinor'
RSIO_VERSION: 'dev'
EXTENSION_VERSION: 'dev'
DEPENDENCIES: matplotlib scipy scikit-learn sympy h5py scikit-image numpy numba
USE_MAMBA: false
PYTHON_VERSION: '3.11'

env:
# EXTENSION: hyperspy-gui-ipywidgets hyperspy-gui-traitsui kikuchipy lumispy pyxem exspy holospy
Expand Down Expand Up @@ -161,6 +171,17 @@ jobs:
pip install git+https://github.com/hyperspy/hyperspy_gui_ipywidgets.git
pip install git+https://github.com/hyperspy/hyperspy_gui_traitsui.git
- name: Install Numpy 2
if: ${{ matrix.DEPENDENCIES_NUMPY2 }}
run: |
# Install dev branches supporting numpy 2
pip install git+https://github.com/ericpre/hyperspy@fix_numpy2
# See https://github.com/hyperspy/rosettasciio/pull/281
pip install git+https://github.com/ericpre/[email protected]
pip install git+https://github.com/ericpre/[email protected]_and_deprecation_fixes
pip uninstall -y pyUSID
pip install numpy==2
- name: Clear conda and pip cache
run: |
conda clean --all
Expand Down

0 comments on commit 77e85c7

Please sign in to comment.