-
Notifications
You must be signed in to change notification settings - Fork 1
91 lines (79 loc) · 2.67 KB
/
floodmodel.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: run-stormsurg-model
on:
workflow_dispatch:
branches:
- main
env:
DATALAKE_STORAGE_ACCOUNT_KEY_IBFSYSTEM: ${{ secrets.DATALAKE_STORAGE_ACCOUNT_KEY_IBFSYSTEM }}
DATALAKE_STORAGE_ACCOUNT_NAME_IBFSYSTEM: ${{ secrets.DATALAKE_STORAGE_ACCOUNT_NAME_IBFSYSTEM }}
GLOSSIS_FTP: ${{ secrets.GLOSSIS_FTP }}
GLOSSIS_PW: ${{ secrets.GLOSSIS_PW }}
GLOSSIS_USER: ${{ secrets.GLOSSIS_USER }}
DATALAKE_API_VERSION: ${{ secrets.DATALAKE_API_VERSION }}
jobs:
run-flood-model:
runs-on: ubuntu-20.04
env:
running-directory: ./pipeline
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install system dependencies1
run: |
sudo apt-get update
sudo apt-get install -y \
software-properties-common \
build-essential \
nano \
vim \
python3-pip \
git \
wget \
libxml2-utils\
gfortran \
kmod \
gfortran \
apache2
- name: Install system dependencies2
run: |
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install -y \
libproj-dev \
libgeos-dev \
libspatialindex-dev \
libudunits2-dev \
libssl-dev \
libgdal-dev \
libgnutls28-dev
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libgirepository1.0-dev\
gcc\
pkg-config\
python3-dev\
gir1.2-gtk-3.0
- name: Install more Python dependencies
run: |
python -m pip install -r requirements.txt
- name: Install script
run: |
python -m pip install .
working-directory: ${{ env.running-directory }}
- name: Run script
env:
GLOSSIS_FTP: ${{ secrets.GLOSSIS_FTP }}
GLOSSIS_PW: ${{ secrets.GLOSSIS_PW }}
GLOSSIS_USER: ${{ secrets.GLOSSIS_USER }}
DATALAKE_STORAGE_ACCOUNT_KEY_IBFSYSTEM: ${{ secrets.DATALAKE_STORAGE_ACCOUNT_KEY_IBFSYSTEM }}
DATALAKE_STORAGE_ACCOUNT_NAME_IBFSYSTEM: ${{ secrets.DATALAKE_STORAGE_ACCOUNT_NAME_IBFSYSTEM }}
DATALAKE_API_VERSION: ${{ secrets.DATALAKE_API_VERSION }}
run: |
run-stormsurge-model
working-directory: ${{ env.running-directory }}