From 13b0ba15cc271fbf2192639e9394568600a5b441 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 | 8 +++++++- environment.yml | 2 +- pyproject.toml | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf5504464d7..55111b3ce78 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,7 @@ jobs: - uses: pre-commit/action@v3.0.1 with: extra_args: --files $(git diff origin/main --name-only) + tests: runs-on: ${{ matrix.os }} needs: lint @@ -42,6 +43,7 @@ jobs: - os: ubuntu-latest python-version: "3.10" install-method: mamba + extra-args: ["oldest-deps"] - os: ubuntu-latest python-version: "3.10" @@ -127,7 +129,11 @@ jobs: pip install -e .[tests] 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: | + mamba install -y numpy=1.24 numba=0.56 scipy=1.10 astropy=5.3 matplotlib=3.6 + mamba list - name: ctapipe-info if: contains(github.event.pull_request.labels.*.name, 'documentation-only') == false diff --git a/environment.yml b/environment.yml index f92fcfa6e72..fa7927ef2b2 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 6c81e30568a..e4059aa53fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,14 +36,14 @@ dependencies = [ "eventio >=1.9.1, <2.0.0a0", "iminuit >=2", "joblib", - "matplotlib ~=3.0", + "matplotlib ~=3.5", "numba >=0.56", - "numpy >=1.23,<3.0.0a0", + "numpy >=1.24,<3.0.0a0", "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",