diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 9352892d..b28aad59 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -19,11 +19,11 @@ jobs: os: [windows-latest, ubuntu-latest, macos-13, macos-14] # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] versions: - - { python: "3.8", numpy: 1.22.4 } - - { python: "3.9", numpy: 1.22.4 } - - { python: "3.10", numpy: 1.22.4 } - - { python: "3.11", numpy: 1.24.3 } - - { python: "3.12", numpy: 1.26.4 } + - { python: "3.8", numpy: 1.22.4, scipy: 1.13.1 } + - { python: "3.9", numpy: 1.22.4, scipy: 1.13.1 } + - { python: "3.10", numpy: 1.22.4, scipy: 1.13.1 } + - { python: "3.11", numpy: 1.24.3, scipy: 1.13.1 } + - { python: "3.12", numpy: 1.26.4, scipy: 1.13.1 } steps: - name: Get number of CPU cores @@ -60,17 +60,17 @@ jobs: pip --version - name: Upgrade pip wheel setuptools - run: pip install wheel setuptools pip --upgrade + run: python${{ matrix.versions.python }} -m pip install wheel setuptools pip --upgrade - - name: Install numpy ${{ matrix.versions.numpy }} - run: pip install numpy==${{ matrix.versions.numpy }} + - name: Install numpy ${{ matrix.versions.numpy }}, scipy ${{ matrix.versions.scipy }} + run: pip install numpy==${{ matrix.versions.numpy }} scipy==${{ matrix.versions.scipy }} - name: Display numpy version run: python${{ matrix.versions.python }} -c "import numpy; print(numpy.__version__)" - name: Install other dependencies run: | - pip install scipy Cython pytest pytest-cov flake8 + pip install Cython pytest pytest-cov flake8 python${{ matrix.versions.python }} setup.py build_ext -j${{ steps.cpu-cores.outputs.count }} pip install -e .[tests]