forked from equinor/ert
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (62 loc) · 1.85 KB
/
run_examples_spe1.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
name: Run SPE1 demo
on: [push, pull_request]
jobs:
run-ert3-spe1:
timeout-minutes: 15
services:
postgres:
image: postgres:10.8
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432/tcp
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
fail-fast: false
matrix:
python-version: [3.6]
data-base: [local, postgres]
os: [ubuntu-18.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Flow Simulator
run: |
sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:opm/ppa
sudo apt-get update
sudo apt-get install mpi-default-bin
sudo apt-get install libopm-simulators-bin
- name: Install ERT
run: |
pip install .[storage]
- name: Install spe1 dependencies
run: |
pip install ecl2df
- name: Setup postgres ert-storage
if: matrix.data-base == 'postgres'
env:
ERT_STORAGE_DATABASE_URL: postgresql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres
run: |
# installing psycopg2 from ert-storage extras
pip install psycopg2
ert-storage alembic upgrade head
- name: Start ert-storage
run: |
ert-storage &
- name: Run spe1 demo
run: |
ert3 init --example spe1
pushd spe1
./run_demo
popd