From dd9fe9513397f57e4aa2a873ff5e904464dc04b0 Mon Sep 17 00:00:00 2001 From: Ralph Urlus Date: Thu, 13 Jun 2024 15:53:30 +0200 Subject: [PATCH] CICD: Add test with NumPy v2 --- .github/workflows/numpy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/numpy.yml diff --git a/.github/workflows/numpy.yml b/.github/workflows/numpy.yml new file mode 100644 index 0000000..140c73d --- /dev/null +++ b/.github/workflows/numpy.yml @@ -0,0 +1,32 @@ +name: Test NumPy + +on: + workflow_dispatch: + +jobs: + build: + name: Build + runs-on: ${{ matrix.platform }} + strategy: + fail-fast: false + matrix: + platform: [windows-latest, macos-latest, ubuntu-latest] + numpy-version: ["numpy<2.0.0", "numpy~=2.0.0rc2"] + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Build and install + run: | + pip install pip --upgrade + pip install "${{ matrix.numpy-version }}" + pip install ".[test]" --verbose + + - name: Test + run: | + cd tests + pytest -vv