Skip to content

Commit

Permalink
Pin scipy version for python-package
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylong committed Jun 25, 2024
1 parent b7b0e7b commit 483b9c6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 483b9c6

Please sign in to comment.