From 361cb1a720215db9160bd95ccdb6ea3be19576b1 Mon Sep 17 00:00:00 2001 From: georgebisbas Date: Mon, 30 Mar 2026 15:22:52 +0000 Subject: [PATCH] ci: Add dependabot for requirements ci: Add dependabot for requirements --- .github/dependabot.yml | 17 +++++++++++++++++ .github/workflows/ci.yml | 10 ++-------- requirements/ci.txt | 6 ++++++ 3 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 requirements/ci.txt diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..1e0df21e7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,17 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/requirements" + schedule: + interval: "daily" + open-pull-requests-limit: 10 + labels: + - "dependencies" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 10 + labels: + - "dependencies" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd38e7c24..158c7753b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,10 +45,7 @@ jobs: - name: Install dependencies run: | - pip install numpy - pip install ml_dtypes - pip install pytest - pip install torch --index-url https://download.pytorch.org/whl/cpu + pip install -r requirements/ci.txt --index-url https://download.pytorch.org/whl/cpu - name: Build nanobind extension run: pip install . @@ -103,10 +100,7 @@ jobs: - name: Install dependencies run: | - pip install numpy - pip install ml_dtypes - pip install pytest - pip install torch --index-url https://download.pytorch.org/whl/cpu + pip install -r requirements/ci.txt --index-url https://download.pytorch.org/whl/cpu - name: Build nanobind extension run: pip install . diff --git a/requirements/ci.txt b/requirements/ci.txt new file mode 100644 index 000000000..32fa6f499 --- /dev/null +++ b/requirements/ci.txt @@ -0,0 +1,6 @@ +# CI Python dependencies for simpler. +# Keep upper bounds here; Dependabot updates this file. +numpy<=2.0.2 +ml_dtypes<=0.5.1 +pytest<=8.3.5 +torch<=2.6.0