-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (38 loc) · 1.26 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: Test
on:
push:
pull_request:
branches:
- master
env:
FIMEX_VERSION: "1.9"
jobs:
test:
name: test
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get machine info
run: |
cat /proc/cpuinfo | grep 'model name' | uniq
cat /proc/cpuinfo | grep flags | uniq
free -h
- name: Install dependencies and launchpad-repo
run: |
sudo add-apt-repository -y ppa:met-norway/fimex
sudo apt update
sudo apt-get install libnetcdff-dev gfortran
- name: Link appropriate make configuration
run: cd src && ln -s gcc_pkgconfig.mk current.mk
- name: Install test requirements
run: sudo apt-get install python3-numpy python3-netcdf4
- name: Create binaries (no fimex) (no tests without fimex)
run: cd src && env SNAP_BOUND_CHECKS=1 make -j2
- name: Clean up
run: cd src && make clean
- name: Install official fimex-binary from launchpad
run: sudo apt install libfimex-$FIMEX_VERSION-dev
- name: Create and test binaries (with fimex)
run: cd src && make clean && env SNAP_FIMEX_VERSION=$FIMEX_VERSION SNAP_BOUND_CHECKS=1 make test