-
Notifications
You must be signed in to change notification settings - Fork 1
93 lines (80 loc) · 2.46 KB
/
ci.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
91
92
name: CI
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '23 3 * * *'
jobs:
flake8:
name: Flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
-
uses: actions/setup-python@v4
with:
# matches compat target in setup.py
python-version: '3.8'
- name: "Flake8 test"
run: |
python3 -m venv myenv
source myenv/bin/activate
python -m pip install wheel
python -m pip install flake8 flake8-quotes
python -m flake8 setup.py driver.py y3prediction
emirge:
name: Emirge installation
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Install emirge
run: |
[[ $(uname) == Linux ]] && sudo apt-get update && sudo apt-get install -y openmpi-bin libopenmpi-dev
[[ $(uname) == Darwin ]] && brew update && brew install mpich
./buildMirge.sh
cd emirge
source config/activate_env.sh
./version.sh
- name: Run pylint
run: |
source emirge/config/activate_env.sh
python -m pip install wheel
python -m pip install pylint pyyaml
pylint setup.py driver.py y3prediction
- name: Eager smoke test
run: |
source emirge/config/activate_env.sh
cd smoke_test
./run.sh
- name: Eager smoke restart test
run: |
source emirge/config/activate_env.sh
cd smoke_test
./run_restart.sh
- name: Lazy smoke test
run: |
source emirge/config/activate_env.sh
cd smoke_test
./run_lazy.sh
- name: Lazy smoke test without wall
run: |
source emirge/config/activate_env.sh
cd smoke_test_nw
./run_lazy.sh
- name: Kitchen sink smoke test
run: |
source emirge/config/activate_env.sh
cd smoke_test_ks
./run_lazy.sh
- name: Kitchen sink 3D smoke test
run: |
source emirge/config/activate_env.sh
cd smoke_test_ks_3d/data
cd ..
./run_lazy.sh