From 26668a006fbd21852dfd5031da1bd25838a804cf Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Fri, 13 Sep 2024 11:54:56 +0200 Subject: [PATCH] Add CI run running on oldest supported versions of core dependencie --- .github/workflows/ci.yml | 7 ++++++- environment.yml | 2 +- pyproject.toml | 6 +++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c714522e019..2b3745e99f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,7 @@ jobs: python-version: "3.10" install-method: mamba extras: tests,all + extra-args: ["oldest-deps"] - name: Linux (3.10, pip) os: ubuntu-latest @@ -143,7 +144,11 @@ jobs: pip install -e ".[${EXTRAS}]" pip install ./test_plugin pip freeze - pip list + + - if: contains(matrix.extra-args, 'oldest-deps') && contains(github.event.pull_request.labels.*.name, 'documentation-only') == false + run: | + micromamba install -n cta-dev -y numpy=1.24 numba=0.57 scipy=1.10 astropy=5.3 matplotlib=3.6 + micromamba list -n cta-dev - name: ctapipe-info if: contains(github.event.pull_request.labels.*.name, 'documentation-only') == false diff --git a/environment.yml b/environment.yml index 73149a38db5..74cde2929d5 100644 --- a/environment.yml +++ b/environment.yml @@ -19,7 +19,7 @@ dependencies: - jupyter - matplotlib - numba>=0.56 - - numpy>=1.22 + - numpy>=1.24 - numpydoc - pandas - pypandoc diff --git a/pyproject.toml b/pyproject.toml index 27c6cf0b7fc..5ee12286066 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,14 +33,14 @@ dependencies = [ "astropy >=5.3,<8.0.0a0", "docutils", "joblib", - "numba >=0.56", - "numpy >=1.23,<3.0.0a0", + "numba >=0.57", + "numpy >=1.24,<3.0.0a0", "packaging", "psutil", "pyyaml >=5.1", "requests", "scikit-learn !=1.4.0", # 1.4.0 breaks with astropy tables, before and after works - "scipy ~=1.2", + "scipy ~=1.10", "tables ~=3.4", "tqdm >=4.32", "traitlets ~=5.6",