-
Notifications
You must be signed in to change notification settings - Fork 17
63 lines (50 loc) · 1.33 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
52
53
54
55
56
57
58
59
60
61
62
63
name: Build + Test
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
R_LIBS_USER: .Rpackages
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq --no-install-recommends \
build-essential \
git \
libgdal-dev \
libhdf5-serial-dev \
libnetcdf-dev \
libssl-dev \
libxml2-dev \
locales \
netcdf-bin \
procps \
r-base \
r-base-dev \
unzip \
wget
- name: Create R package install path
run: mkdir -p $R_LIBS_USER
- name: Install STILT
run: bash test/test_setup.sh
- name: Run batch simulation test
run: bash test/test_run_stilt.sh
- name: Run CLI test
run: bash test/test_stilt_cli.sh
- name: Run CLI column receptor test
run: bash test/test_stilt_cli.sh
- name: Run WRF test
run: bash test/test_wrf_converter.sh
- name: Install Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Test docker build
run: docker build -t stilt .