From 2b77d8596b66d91d3564c6335c5471f636b38ee8 Mon Sep 17 00:00:00 2001 From: Mariam Zakaria <123750992+mariam851@users.noreply.github.com> Date: Sat, 10 Jan 2026 05:30:15 +0200 Subject: [PATCH 1/3] Fix #982: update CI and environment dependencies with proper formatting --- .github/workflows/python-package-conda.yml | 3 ++- .github/workflows/python-package-pip.yml | 2 ++ environment.yml | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 14c138bff..3b70d30df 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -29,7 +29,8 @@ jobs: - name: Install test dependencies (conda) shell: bash -l {0} run: | - conda install -y pytest coverage + # Pinning numpy and scikit-learn to prevent the issues reported in #982 + conda install -y pytest coverage "numpy>=1.22,<2.4" "scikit-learn>=1.0" "numba>=0.59.0" - name: Install package and run tests shell: bash -l {0} diff --git a/.github/workflows/python-package-pip.yml b/.github/workflows/python-package-pip.yml index 4790b1ecd..f17b4d814 100644 --- a/.github/workflows/python-package-pip.yml +++ b/.github/workflows/python-package-pip.yml @@ -24,6 +24,8 @@ jobs: - name: Install dependencies (pip) run: | python -m pip install --upgrade pip + # Fixing #982 by pinning numpy to a version compatible with numba + pip install "numpy>=1.22,<2.4" pip install pytest coverage pip install -e . diff --git a/environment.yml b/environment.yml index b1c12c982..96f2cbebc 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge dependencies: - flake8>=4.0.1 - - numpy>=2.3.5 + - numpy>=1.21.0,<2.4.0 - pandas>=2.3.3 - scipy>=1.16.3 - scikit-learn>=1.8.0 @@ -13,4 +13,4 @@ dependencies: - pytest>=6.2.5 - setuptools>=59.4.0 - pip: - - markdown>=3.3.6 \ No newline at end of file + - markdown>=3.3.6 From 8516bc60b223b4d50444e7e773ef94d20ea45229 Mon Sep 17 00:00:00 2001 From: Sebastian Raschka Date: Sun, 25 Jan 2026 19:07:42 -0600 Subject: [PATCH 2/3] Update .github/workflows/python-package-conda.yml --- .github/workflows/python-package-conda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 3b70d30df..9401458b9 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -30,7 +30,7 @@ jobs: shell: bash -l {0} run: | # Pinning numpy and scikit-learn to prevent the issues reported in #982 - conda install -y pytest coverage "numpy>=1.22,<2.4" "scikit-learn>=1.0" "numba>=0.59.0" + conda install -y pytest coverage "numpy>=1.22,<2.4" "scikit-learn>=1.0" - name: Install package and run tests shell: bash -l {0} From c09b9f47c7df54fa508284719b56dd9e34c454e3 Mon Sep 17 00:00:00 2001 From: Sebastian Raschka Date: Sun, 25 Jan 2026 19:07:50 -0600 Subject: [PATCH 3/3] Update .github/workflows/python-package-pip.yml --- .github/workflows/python-package-pip.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package-pip.yml b/.github/workflows/python-package-pip.yml index f17b4d814..ee5825e7a 100644 --- a/.github/workflows/python-package-pip.yml +++ b/.github/workflows/python-package-pip.yml @@ -24,7 +24,7 @@ jobs: - name: Install dependencies (pip) run: | python -m pip install --upgrade pip - # Fixing #982 by pinning numpy to a version compatible with numba + # Fixing #982 by pinning numpy pip install "numpy>=1.22,<2.4" pip install pytest coverage pip install -e .