Skip to content

Commit 4dd205e

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

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,26 @@ 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+
# We just run the CLI tests here because it doesn't require other upstream
133+
# packages like sgkit (which are tangled up with the numpy 2 dependency)
134+
python -m pytest tests/test_cli.py

0 commit comments

Comments
 (0)