Skip to content

Commit

Permalink
test multiple numpy versions in GHA for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ewu63 committed Jul 16, 2024
1 parent ec7f0c5 commit 26ff384
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dependencies:
# build
- python >=3.9
- numpy >=1.21,<2
- numpy >=2.0
- ipopt
- swig
- meson >=1.3.2
Expand All @@ -10,9 +10,10 @@ dependencies:
- pip
- setuptools
- build
# runtime
- mdolab-baseclasses >=1.3.1
- scipy >=1.7
- sqlitedict >=1.6
# testing
- parameterized
- testflo
- scipy >=1.7
- mdolab-baseclasses >=1.3.1
- sqlitedict >=1.6
9 changes: 8 additions & 1 deletion .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ on:
jobs:
build-windows:
runs-on: windows-latest

timeout-minutes: 20
strategy:
fail-fast: false
matrix:
numpy_version: ["1.21.6", "1.25.2", "2.0.0"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
Expand All @@ -37,6 +41,9 @@ jobs:
set CC_LD=link
python -m build -n -x .
pip install --no-deps --no-index --find-links dist pyoptsparse
- name: Install runtime numpy ${{ matrix.numpy_version }}
run: |
mamba install numpy==${{ matrix.numpy_version }}
- name: Run tests
shell: bash -l {0}
run: |
Expand Down

0 comments on commit 26ff384

Please sign in to comment.