Skip to content

Commit

Permalink
Run tests on numpy 1 and numpy 2
Browse files Browse the repository at this point in the history
Closes #256
  • Loading branch information
jeromekelleher committed Oct 23, 2024
1 parent 0b872af commit 4dd205e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,26 @@ jobs:
vcfpartition --help
python -m bio2zarr vcfpartition --help
test-numpy-version:
name: Test numpy versions
runs-on: ubuntu-latest
strategy:
matrix:
numpy: ["==1.26", ">=2"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install '.[dev]'
- name: Install numpy${{ matrix.numpy }}
run: |
python -m pip install 'numpy${{ matrix.numpy }}'
- name: Run tests
run: |
# We just run the CLI tests here because it doesn't require other upstream
# packages like sgkit (which are tangled up with the numpy 2 dependency)
python -m pytest tests/test_cli.py

0 comments on commit 4dd205e

Please sign in to comment.