Skip to content

Commit dc3dd77

Browse files
committed
Merge remote-tracking branch 'upstream/main' into multi-stage-time-integrator
2 parents e9b3533 + 6139faa commit dc3dd77

69 files changed

Lines changed: 5434 additions & 238 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/asv.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ on:
1313
inputs:
1414
tags:
1515
description: 'Run ASV'
16-
# Trigger the workflow on push to the main branch
17-
push:
18-
branches:
19-
- main
2016

2117
jobs:
2218

.github/workflows/examples-mpi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
uses: actions/checkout@v5
5050

5151
- name: Set up Python
52-
uses: actions/setup-python@v5
52+
uses: actions/setup-python@v6
5353
with:
5454
python-version: 3.11
5555

.github/workflows/examples.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ jobs:
3636
- name: Checkout devito
3737
uses: actions/checkout@v5
3838

39+
- name: Checkout data
40+
uses: actions/checkout@v5
41+
with:
42+
repository: 'devitocodes/data'
43+
path: 'data'
44+
3945
- name: Setup conda
4046
uses: conda-incubator/setup-miniconda@v3
4147
with:
@@ -81,6 +87,13 @@ jobs:
8187
run: |
8288
python examples/cfd/example_diffusion.py
8389
90+
- name: Timestepping examples
91+
run: |
92+
python examples/timestepping/ic_superstep.py -d 1
93+
python examples/timestepping/ic_superstep.py -d 2
94+
python examples/timestepping/acoustic_superstep.py --model layered
95+
python examples/timestepping/acoustic_superstep.py --model marmousi
96+
8497
- name: Upload coverage to Codecov
8598
uses: codecov/codecov-action@v5
8699
with:

.github/workflows/flake8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v5
2424
- name: Set up Python 3.10
25-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@v6
2626
with:
2727
python-version: "3.10"
2828
- name: Install dependencies

.github/workflows/pytest-core-mpi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
RDMAV_FORK_SAFE: 1
3232

3333
steps:
34-
- uses: actions/setup-python@v5
34+
- uses: actions/setup-python@v6
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737

.github/workflows/pytest-core-nompi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129

130130
- name: Set up Python ${{ matrix.python-version }}
131131
if: "!contains(matrix.name, 'docker')"
132-
uses: actions/setup-python@v5
132+
uses: actions/setup-python@v6
133133
with:
134134
python-version: ${{ matrix.python-version }}
135135
allow-prereleases: true

.github/workflows/pythonpublish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v5
1212
- name: Set up Python
13-
uses: actions/setup-python@v5
13+
uses: actions/setup-python@v6
1414
with:
1515
python-version: '3.x'
1616
- name: Install dependencies

.github/workflows/triggers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
- uses: actions/checkout@v5
1414

1515
- name: Trigger doc build
16-
uses: peter-evans/repository-dispatch@v3
16+
uses: peter-evans/repository-dispatch@v4
1717
with:
1818
token: ${{ secrets.DEPLOY_DOC_PAT }}
1919
repository: devitocodes/devitoproject.org
2020
event-type: deploy-docs
2121

2222
- name: Trigger pro submodule update
23-
uses: peter-evans/repository-dispatch@v3
23+
uses: peter-evans/repository-dispatch@v4
2424
with:
2525
token: ${{ secrets.PRO_SUBMODULE }}
2626
repository: devitocodespro/devitopro

.github/workflows/tutorials.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: Set up Python ${{ matrix.pyver }}
6060
if: "!contains(matrix.name, 'docker')"
61-
uses: actions/setup-python@v5
61+
uses: actions/setup-python@v6
6262
with:
6363
python-version: ${{ matrix.pyver }}
6464

@@ -142,3 +142,7 @@ jobs:
142142
- name: ABC Notebooks
143143
run: |
144144
${{ env.RUN_CMD }} py.test --nbval examples/seismic/abc_methods
145+
146+
- name: Timestepping Notebooks
147+
run: |
148+
${{ env.RUN_CMD }} py.test --nbval examples/timestepping

conftest.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import pytest
66
from sympy import Add
7+
from sympy.printing import sstr
78

89
from devito import Eq, configuration, Revolver # noqa
910
from devito.checkpointing import NoopRevolver
@@ -287,6 +288,20 @@ def pytest_runtest_makereport(item, call):
287288
result.outcome = 'passed'
288289

289290

291+
def pytest_make_parametrize_id(config, val, argname):
292+
"""
293+
Prevents pytest from making obscure parameter names (param0, param1, ...)
294+
and default to sympy.sstr(val) instead for better log readability.
295+
"""
296+
# First see if it has a name
297+
if hasattr(val, '__name__'):
298+
return val.__name__
299+
try:
300+
return sstr(val)
301+
except Exception:
302+
return None # Fall back to default behavior
303+
304+
290305
# A list of optimization options/pipelines to be used in testing
291306
# regarding spatial and/or temporal blocking.
292307
opts_tiling = ['advanced',

0 commit comments

Comments
 (0)