diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ceab093..e6683f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 57f0427..898da0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ authors = [ {name = "sgkit Developers", email = "project@sgkit.dev"}, ] dependencies = [ - "numpy>=1.23.5,<2", + "numpy>=1.23.5", "zarr>=2.17,<3", "click", "pyranges",