Skip to content

Commit

Permalink
Merge pull request #142 from ocefpaf/run_tests
Browse files Browse the repository at this point in the history
run all tests
  • Loading branch information
xylar authored Jun 18, 2024
2 parents 13aa2b4 + 439a663 commit 89e426d
Showing 1 changed file with 10 additions and 4 deletions.
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

0 comments on commit 89e426d

Please sign in to comment.