Skip to content

Commit f739b2f

Browse files
author
The ml_dtypes Authors
committed
Merge pull request #157 from jakevdp:ci-oldest-numpy
PiperOrigin-RevId: 647047826
2 parents 0d69946 + 18ae2da commit f739b2f

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,6 @@ jobs:
5050
- name: Run tests
5151
run: |
5252
pytest -n auto
53-
# TODO(jakevdp): remove this job after NumPy 2.0 release
54-
build-numpy-2-pre:
55-
name: Python 3.12 with numpy 2.0 pre-release
56-
runs-on: ubuntu-latest
57-
steps:
58-
- uses: actions/checkout@v3
59-
with:
60-
submodules: true
61-
- name: Set up Python 3.12
62-
uses: actions/setup-python@v4
63-
with:
64-
python-version: 3.12
65-
- name: Install dependencies
66-
run: |
67-
python -m pip install --upgrade pip
68-
pip install .[dev]
69-
pip install -U --pre numpy
70-
- name: Run tests
71-
run: |
72-
pytest -n auto
7353
build-nightly:
7454
name: Python 3.12 with nightly numpy
7555
runs-on: ubuntu-latest
@@ -94,3 +74,25 @@ jobs:
9474
- name: Run tests
9575
run: |
9676
pytest -n auto
77+
build-oldest-numpy:
78+
name: Python 3.9 with oldest supported numpy
79+
runs-on: ubuntu-latest
80+
steps:
81+
- uses: actions/checkout@v3
82+
with:
83+
submodules: true
84+
- name: Set up Python 3.9
85+
uses: actions/setup-python@v5
86+
with:
87+
python-version: "3.9"
88+
- name: Install dependencies
89+
run: |
90+
python -m pip install --upgrade pip
91+
python -m pip install --upgrade setuptools wheel
92+
- name: Build ml_dtypes
93+
run: |
94+
python -m pip install .[dev]
95+
python -m pip install numpy==1.21.0 # keep in sync with oldest numpy version in pyproject.toml
96+
- name: Run tests
97+
run: |
98+
pytest -n auto

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ keywords = []
1717
# pip dependencies of the project
1818
dependencies = [
1919
# Ensure numpy release supports Python version.
20-
"numpy>1.20",
20+
"numpy>=1.21",
2121
"numpy>=1.21.2; python_version>='3.10'",
2222
"numpy>=1.23.3; python_version>='3.11'",
2323
"numpy>=1.26.0; python_version>='3.12'",

0 commit comments

Comments
 (0)