-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (44 loc) · 1.29 KB
/
test-mms.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
name: MMS Test
on: [push]
jobs:
standard_tests:
name: Tests with ${{ matrix.config.name }}
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: oi4ai/bout3d:latest-${{ matrix.config.mode }}
strategy:
fail-fast: false
matrix:
config:
- name: debugging
mode: debug
- name: optimisations
mode: opt
steps:
- name: Job information
run: |
echo Build: ${{ matrix.config.name }}
cat /etc/os-release
- name: Checkout hermes-2
run: |
cd /home/boutuser/
git clone ${{ github.server_url }}/${{ github.repository }} -b ${{ github.ref_name }} zoidberg
cd zoidberg
git checkout ${{ github.sha }}
git submodule update --init --recursive
- name: Build
run: |
export HOME=/home/boutuser
cd /home/boutuser/zoidberg
python3 -m ensurepip
python3 -m pip install .
python3 -m pip install xarray
- name: Run
run: |
export HOME=/home/boutuser
export PYTHONPATH=/home/boutuser/BOUT-dev/build/tools/pylib/
export LD_LIBRARY_PATH=/usr/lib64/mpich/lib
cd /home/boutuser/zoidberg/test/mms/
# Run test
make