From d9fc86f8fc6fba9b300940843abcf38c6f38dfb0 Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Sat, 14 Dec 2024 06:41:33 +0100 Subject: [PATCH] Test on numpy 1 and 2 --- .github/workflows/python-package-tox.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package-tox.yml b/.github/workflows/python-package-tox.yml index 83999ea..9877690 100644 --- a/.github/workflows/python-package-tox.yml +++ b/.github/workflows/python-package-tox.yml @@ -13,19 +13,22 @@ jobs: strategy: matrix: python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + numpyversion: ["1", "2"] fail-fast: false runs-on: ${{ matrix.python <= '3.6' && 'ubuntu-20.04' || 'ubuntu-22.04' }} + name: Test on python ${{ matrix.python }} and numpy ${{ matrix.numpyversion }} steps: - uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - allow-prereleases: true - - name: Install Tox and any other packages + - name: Install Tox run: pip install tox + - name: Install numpy ${{ matrix.numpyversion }} + run: pip install numpy==${{ matrix.numpyversion }}.* - name: Run Tox # Run tox using the version of Python in `PATH` run: tox -e py