-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|