Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,33 @@ jobs:
cd tests
python -m vcztools --help

test-numpy-version:
name: Test numpy versions
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
numpy: ["==1.26", ">=2"]
steps:
- uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: '3.11'
channels: conda-forge,bioconda
- name: Install dependencies
run: |
conda install bcftools
python -m pip install --upgrade pip
python -m pip install '.[dev]'
# Build the extension module in-place so pytest can find it
python3 setup.py build_ext --inplace
- name: Install numpy${{ matrix.numpy }}
run: |
python -m pip install 'numpy${{ matrix.numpy }}'
- name: Run tests
run: |
pytest
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
{name = "sgkit Developers", email = "[email protected]"},
]
dependencies = [
"numpy>=1.23.5,<2",
"numpy>=1.23.5",
"zarr>=2.17,<3",
"click",
"pyranges",
Expand Down
Loading