-
Notifications
You must be signed in to change notification settings - Fork 18
74 lines (64 loc) · 1.81 KB
/
examples.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: CI
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
examples:
name: Examples
runs-on: ubuntu-latest
env:
DEVITO_COMPILER: gcc
DEVITO_LANGUAGE: openmp
PYTHON_VERSION: 3.11.4
strategy:
# Prevent all build to stop if a single one fails
fail-fast: false
steps:
- name: Checkout stride
uses: actions/checkout@v3
with:
path: stride
- name: Checkout devito
uses: actions/checkout@v3
with:
repository: devitocodes/devito
path: devito
- name: Setup conda
uses: conda-incubator/setup-miniconda@v2
with:
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
activate-environment: stride
environment-file: stride/environment.yml
python-version: 3.11.4
auto-activate-base: false
- name: Install dependencies
shell: bash -l {0}
run: |
cd stride
pip install -e .
- name: Install devito
shell: bash -l {0}
run: |
cd devito
pip install -e .
- name: Homogeneous examples
shell: bash -l {0}
run: |
cd stride
mrun -nw 1 -nth 2 python stride_examples/examples/homogeneous_acoustic/forward_2D.py
mrun -nw 1 -nth 2 python stride_examples/examples/homogeneous_acoustic/forward_3D.py
mrun -nw 1 -nth 2 python stride_examples/examples/homogeneous_elastic/forward_2D.py
- name: Breast 2D
shell: bash -l {0}
run: |
cd stride
mrun -nw 1 -nth 2 python stride_examples/examples/breast2D/01_script_forward.py
mrun -nw 1 -nth 2 python stride_examples/examples/breast2D/02_script_inverse.py