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

run all tests #142

Merged
merged 2 commits into from
Jun 18, 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
14 changes: 10 additions & 4 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set version = "1.7.1" %}
{% set build = 0 %}
{% set build = 1 %}

# recipe-lint fails if mpi is undefined
{% set mpi = mpi or 'nompi' %}
Expand All @@ -13,8 +13,8 @@ package:
version: {{ version }}

source:
url: https://pypi.io/packages/source/n/netCDF4/netcdf4-{{ version }}.tar.gz
sha256: 87d666093870ebbc0153c8eb42a4a70d6a1d33b47fa3d8fd2e01b6d8de52023e
url: https://github.com/Unidata/netcdf4-python/archive/refs/tags/v{{ version }}rel.tar.gz
sha256: 42c189fb646a2993f15791b3835797389d7d0791de033ed4347955c673194605

build:
skip: true # [(win and vc<14) or (win and mpi != 'nompi')]
Expand Down Expand Up @@ -43,7 +43,7 @@ requirements:
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- cython # [build_platform != target_platform]
- numpy # [build_platform != target_platform]
- {{ compiler('c') }}
- {{ compiler("c") }}
- {{ stdlib("c") }}
host:
- python
Expand Down Expand Up @@ -76,17 +76,23 @@ requirements:
- openssh # [mpi == 'openmpi']

test:
source_files:
- test
files:
- parallel_test.py # [mpi != 'nompi']
imports:
- netCDF4
- cftime
requires:
- cython
- packaging
commands:
- ncinfo -h
- nc4tonc3 -h
- nc3tonc4 -h
- mpirun -np 4 python parallel_test.py # [mpi == 'mpich']
- mpirun --oversubscribe -np 4 python parallel_test.py # [mpi == 'openmpi']
- cd test && python run_all.py

about:
home: http://github.com/Unidata/netcdf4-python
Expand Down