Skip to content

Commit

Permalink
Merge 53fdd74 into 1597c9c
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpus committed Feb 5, 2022
2 parents 1597c9c + 53fdd74 commit 9029756
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
.PHONY: test test_coverage

am:
am11:
curl 'https://zenodo.org/record/3406483/files/am-11.0.tgz?download=1' > am-11.0.tgz
#curl 'https://zenodo.org/record/5794524/files/am-12.0.tgz?download=1' > am-12.0.tgz
tar xf am-11.0.tgz
cd am-11.0/src && make serial && ./am -v

am12:
curl 'https://zenodo.org/record/5794524/files/am-12.0.tgz?download=1' > am-12.0.tgz
tar xf am-12.0.tgz
cd am-12.0/src && make serial && ./am -v

test:
AM=am-11.0/src/am PYTHONPATH=. pytest -v -v
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ are some rough notes:
```
apt-get install libeccodes-dev proj-bin libproj-dev # Ubuntu 18.04 or later
# yum install eccodes-devel proj proj-devel # RH flavored distros
# brew install eccodes proj
# brew install eccodes proj # for homebrew
# conda?
pip install cython # must be installed early to rebuild for newer python versions
Expand Down
22 changes: 6 additions & 16 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,18 @@ jobs:
displayName: 'install OS packages'
- script: |
curl 'https://zenodo.org/record/3406483/files/am-11.0.tgz?download=1' > am-11.0.tgz
#curl 'https://zenodo.org/record/5794524/files/am-12.0.tgz?download=1' > am-12.0.tgz
tar xf am-11.0.tgz
cd am-11.0/src
make serial
cd ../..
./am-11.0/src/am -v
make am11
displayName: 'install am-11.0'
- script: |
python -m pip install --upgrade pip
pip --use-feature=in-tree-build install . .[test]
pip install . .[test]
displayName: 'Install dependencies'
- script: |
pip install pytest-azurepipelines
export AM=./am-11.0/src/am
$AM -v
PYTHONPATH=. pytest --cov-report=xml --cov=eht_met_forecast -v -v
coverage report -m
displayName: 'pytest'
Expand Down Expand Up @@ -82,26 +77,21 @@ jobs:
displayName: 'install OS packages'
- script: |
curl 'https://zenodo.org/record/3406483/files/am-11.0.tgz?download=1' > am-11.0.tgz
#curl 'https://zenodo.org/record/5794524/files/am-12.0.tgz?download=1' > am-12.0.tgz
tar xf am-11.0.tgz
cd am-11.0/src
make serial
cd ../..
./am-11.0/src/am -v
make am11
displayName: 'install am-11.0'
- script: |
# see brew above for where OS packages are installed
python -m pip install --upgrade pip
# XCode 12 makes this warning an error? the function is in cython-generated code
export CFLAGS="-Wno-implicit-function-declaration"
pip --use-feature=in-tree-build install . .[test]
pip install . .[test]
displayName: 'Install dependencies'
- script: |
pip install pytest-azurepipelines
export AM=./am-11.0/src/am
$AM -v
touch tests/__init.py__
PYTHONPATH=. pytest --cov-report=xml --cov=eht_met_forecast -v -v
coverage report -m
Expand Down

0 comments on commit 9029756

Please sign in to comment.