Skip to content

Commit 79848a4

Browse files
Run tests on numpy 1 and numpy 2
Closes #256
1 parent 0b872af commit 79848a4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,24 @@ jobs:
109109
vcfpartition --help
110110
python -m bio2zarr vcfpartition --help
111111
112+
test-numpy-version:
113+
name: Test numpy versions
114+
runs-on: ubuntu-latest
115+
strategy:
116+
matrix:
117+
numpy: ["==1.26", ">=2"]
118+
steps:
119+
- uses: actions/checkout@v4
120+
- uses: actions/setup-python@v5
121+
with:
122+
python-version: '3.11'
123+
- name: Install dependencies
124+
run: |
125+
python -m pip install --upgrade pip
126+
python -m pip install '.[dev]'
127+
- name: Install numpy${{ matrix.numpy }}
128+
run: |
129+
python -m pip install 'numpy${{ matrix.numpy }}'
130+
- name: Run tests
131+
run: |
132+
pytest

0 commit comments

Comments
 (0)