Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed May 16, 2023
1 parent 1d48f49 commit 859635b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ jobs:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.10", "3.11"]
numpy_ver: ["latest"]
test_config: ["latest"]
include:
- python-version: "3.9"
numpy_ver: "1.21"
os: ubuntu-latest
test_config: "NEP29"
- python-version: "3.6.8"
numpy_ver: "1.19.5"
os: "ubuntu-20.04"
test_config: "Ops"

name: Python ${{ matrix.python-version }} on ${{ matrix.os }} with numpy ${{ matrix.numpy_ver }}
runs-on: ${{ matrix.os }}
Expand All @@ -35,20 +38,20 @@ jobs:
run: brew reinstall gcc

- name: Install Operational dependencies
if: ${{ matrix.numpy_ver == "1.19.5"}}
if: ${{ matrix.test_config == "Ops"}}
run: |
pip install --no-cache-dir numpy==${{ matrix.numpy_ver }}
pip install -r requirements.txt
pip install -r test_requirements.txt
- name: Install NEP29 dependencies
if: ${{ matrix.numpy_ver == "1.21"}}
if: ${{ matrix.test_config == "NEP29"}}
run: |
pip install --no-cache-dir numpy==${{ matrix.numpy_ver }}
pip install --upgrade-strategy only-if-needed .[test]
- name: Install standard dependencies
if: ${{ matrix.numpy_ver == 'latest'}}
if: ${{ matrix.test_config == 'latest'}}
run: |
pip install .[test]
Expand Down

0 comments on commit 859635b

Please sign in to comment.