Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add numpy to pre-release dependency build to test against numpy 2.0 #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading