Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test against np2 #1319

Merged
merged 2 commits into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions .github/workflows/miniconda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,22 @@ jobs:
# NO_NET: 1
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
os: [windows-latest, ubuntu-latest, macos-latest]
experimental: [false]
platform: [x64, x32]
exclude:
- os: macos-latest
platform: x32
include:
- python-version: "3.12"
os: "ubuntu-latest"
experimental: true
platform: x64
fail-fast: false
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4
Expand All @@ -35,14 +44,20 @@ jobs:
numpy cython pip pytest hdf5 libnetcdf cftime zlib certifi
--channel conda-forge

- name: Install unstable dependencies
if: matrix.experimental == true
run: >-
micromamba install
conda-forge/label/cftime_dev::cftime
conda-forge/label/numpy_dev::numpy
--channel conda-forge --channel conda-forge

- name: Install netcdf4-python
shell: bash -l {0}
run: |
export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH" # so setup.py finds nc-config
python -m pip install -v -e . --no-deps --force-reinstall
python -m pip install -v -e . --no-deps --no-build-isolation --force-reinstall

- name: Tests
shell: bash -l {0}
run: |
cd test && python run_all.py

Expand All @@ -53,6 +68,9 @@ jobs:
python-version: [ "3.11" ]
os: [ubuntu-latest]
platform: [x64]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -69,14 +87,12 @@ jobs:
--channel conda-forge

- name: Install netcdf4-python with mpi
shell: bash -l {0}
run: |
export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH" # so setup.py finds nc-config
nc-config --all
python -m pip install -v -e . --no-build-isolation --no-deps --force-reinstall

- name: Tests
shell: bash -l {0}
run: |
cd test && python run_all.py
cd ../examples
Expand Down