Skip to content

Commit fd816a7

Browse files
committed
ci: More noodling
1 parent fb7c416 commit fd816a7

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/examples.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
uses: actions/checkout@v5
3838
with:
3939
repository: 'devitocodes/data'
40+
path: 'data'
4041

4142
- name: Checkout devito
4243
uses: actions/checkout@v5
@@ -48,6 +49,13 @@ jobs:
4849
environment-file: environment-dev.yml
4950
auto-activate-base: false
5051

52+
- name: Timestepping examples (run early to check fast)
53+
run: |
54+
python examples/timestepping/ic_superstep.py -d 1
55+
python examples/timestepping/ic_superstep.py -d 2
56+
python examples/timestepping/acoustic_superstep.py --model layered
57+
python examples/timestepping/acoustic_superstep.py --model marmousi
58+
5159
- name: Tests in examples
5260
run: |
5361
py.test --cov --cov-config=.coveragerc --cov-report=xml examples/

examples/timestepping/acoustic_superstep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def acoustic_model(model, t0, t1, t2, critical_dt, source, step=1, snapshots=1):
138138
try:
139139
path = f'{os.environ["VIRTUAL_ENV"]}/src'
140140
except KeyError:
141-
path = '.'
141+
path = str(os.environ['GITHUB_WORKSPACE'])
142142
tmp_model = demo_model(
143143
'marmousi-isotropic',
144144
space_order=2,

0 commit comments

Comments
 (0)