Skip to content

Commit b7ddb9c

Browse files
committed
ci: Add dependabot for requirements
1 parent fe63325 commit b7ddb9c

3 files changed

Lines changed: 25 additions & 8 deletions

File tree

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
open-pull-requests-limit: 10
8+
labels:
9+
- "dependencies"
10+
11+
- package-ecosystem: "github-actions"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"
15+
open-pull-requests-limit: 10
16+
labels:
17+
- "dependencies"

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ jobs:
4545
4646
- name: Install dependencies
4747
run: |
48-
pip install numpy
49-
pip install ml_dtypes
50-
pip install pytest
51-
pip install torch --index-url https://download.pytorch.org/whl/cpu
48+
pip install -r requirements/ci.txt --index-url https://download.pytorch.org/whl/cpu
5249
5350
- name: Build nanobind extension
5451
run: pip install .
@@ -103,10 +100,7 @@ jobs:
103100
104101
- name: Install dependencies
105102
run: |
106-
pip install numpy
107-
pip install ml_dtypes
108-
pip install pytest
109-
pip install torch --index-url https://download.pytorch.org/whl/cpu
103+
pip install -r requirements/ci.txt --index-url https://download.pytorch.org/whl/cpu
110104
111105
- name: Build nanobind extension
112106
run: pip install .

requirements/ci.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# CI Python dependencies for simpler.
2+
# Keep upper bounds here; Dependabot updates this file.
3+
numpy<=2.0.2
4+
ml_dtypes<=0.5.1
5+
pytest<=8.3.5
6+
torch<=2.6.0

0 commit comments

Comments
 (0)