Skip to content

Commit

Permalink
Specify numpy version for each Python version (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqtg committed May 13, 2023
1 parent 6259844 commit 4538b80
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 9 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,24 @@ jobs:
- name: Upgrade pip wheel setuptools
run: python -m pip install wheel setuptools pip --upgrade

- name: Install numpy
run: |
python -m pip install numpy==1.24.3
python -c "import numpy; print(numpy.__version__)"
- name: Install numpy for Python 3.8
if: matrix.python-version == '3.8'
run: python -m pip install numpy==1.20.3

- name: Install numpy for Python 3.9
if: matrix.python-version == '3.9'
run: python -m pip install numpy==1.21.6

- name: Install numpy for Python 3.10
if: matrix.python-version == '3.10'
run: python -m pip install numpy==1.22.4

- name: Install numpy for Python 3.11
if: matrix.python-version == '3.11'
run: python -m pip install numpy==1.24.3

- name: Display numpy version
run: python -c "import numpy; print(numpy.__version__)"

- name: Install other dependencies
run: |
Expand Down
24 changes: 19 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,24 @@ jobs:
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install numpy
run: |
python -m pip install numpy==1.24.3
python -c "import numpy; print(numpy.__version__)"
- name: Install numpy for Python 3.8
if: matrix.python-version == '3.8'
run: python -m pip install numpy==1.20.3

- name: Install numpy for Python 3.9
if: matrix.python-version == '3.9'
run: python -m pip install numpy==1.21.6

- name: Install numpy for Python 3.10
if: matrix.python-version == '3.10'
run: python -m pip install numpy==1.22.4

- name: Install numpy for Python 3.11
if: matrix.python-version == '3.11'
run: python -m pip install numpy==1.24.3

- name: Display numpy version
run: python -c "import numpy; print(numpy.__version__)"

- name: Install other dependencies
run: |
Expand Down Expand Up @@ -77,7 +91,7 @@ jobs:

- name: Install numpy
run: |
python -m pip install numpy==1.24.3
python -m pip install numpy==1.22.4
python -c "import numpy; print(numpy.__version__)"
- name: Install other dependencies
Expand Down

0 comments on commit 4538b80

Please sign in to comment.