Skip to content

Commit

Permalink
Use a less fancy way of setting min/max NEP29 versions for Python/NumPy
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Mar 18, 2021
1 parent 2d293bb commit ba09c7e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:

jobs:
test:
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}/NumPy ${{ env.NUMPY-VERSION }}
name: ${{ matrix.os }} - Python ${{ matrix.python-version }} / NumPy ${{ matrix.numpy-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -41,9 +41,15 @@ jobs:
isDraft: true
- os: windows-latest
isDraft: true
- os: ubuntu-latest
python-version: 3.7
isDraft: true
# - os: ubuntu-latest
# python-version: 3.7
# isDraft: true
include:
# Pair Python 3.7 with NumPy 1.17 and Python 3.9 with NumPy 1.20
- python-version: 3.7
numpy-version: '1.17'
- python-version: 3.9
numpy-version: '1.20'
defaults:
run:
shell: bash -l {0}
Expand All @@ -52,8 +58,6 @@ jobs:
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
# Pair Python 3.7 with NumPy 1.17 and Python 3.9 with NumPy 1.20
NUMPY-VERSION: ${{ matrix.python-version == '3.7' && '1.17' || '1.20' }}

steps:
# Cancel previous runs that are not completed
Expand Down

0 comments on commit ba09c7e

Please sign in to comment.