Skip to content

Commit 41c0919

Browse files
committed
Test on Python 3.12 - but only on NumPy 2 due to cbgen version constraints
1 parent 51a8ffa commit 41c0919

File tree

3 files changed

+38
-3
lines changed

3 files changed

+38
-3
lines changed

.github/workflows/build-numpy-2.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.10", "3.11"]
14+
python-version: ["3.10", "3.11", "3.12"]
1515

1616
steps:
1717
- uses: actions/checkout@v2
@@ -22,8 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install -r requirements.txt -r requirements-dev.txt
26-
pip install -U 'numpy<2.1'
25+
pip install -r requirements-numpy2.txt -r requirements-numpy2-dev.txt
2726
- name: Run pre-commit
2827
uses: pre-commit/[email protected]
2928
- name: Test with pytest (numba jit disabled)

requirements-numpy2-dev.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
callee
2+
pre-commit
3+
pytest
4+
pytest-cov
5+
pytest-datadir
6+
pytest-mock
7+
hypothesis
8+
scikit-allel
9+
statsmodels
10+
msprime>=1.0
11+
scikit-learn
12+
partd
13+
bed-reader
14+
rechunker
15+
cbgen > 1.0.5; platform_system != "Windows"
16+
cbgen == 1.0.1; platform_system == "Windows"
17+
cyvcf2; platform_system != "Windows"
18+
yarl
19+
matplotlib
20+
asv
21+
networkx
22+
aiohttp
23+
requests
24+
graphviz

requirements-numpy2.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
numpy < 2.1
2+
xarray
3+
dask[array] >= 2023.01.0, <= 2024.8.0
4+
distributed >= 2023.01.0, <= 2024.8.0
5+
dask-ml
6+
scipy
7+
typing-extensions
8+
numba
9+
zarr >= 2.10.0, != 2.11.0, != 2.11.1, != 2.11.2, < 3
10+
fsspec != 2021.6.*
11+
scikit-learn
12+
pandas

0 commit comments

Comments
 (0)