Skip to content

Use renamed dmp-decompose-2d -> dmp-decompose. #154

Use renamed dmp-decompose-2d -> dmp-decompose.

Use renamed dmp-decompose-2d -> dmp-decompose. #154

Workflow file for this run

name: Examples
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tutorials:
name: Examples with conda install
runs-on: ubuntu-latest
defaults:
# Default for conda env
run:
shell: bash -l {0}
env:
DEVITO_ARCH: gcc
DEVITO_LANGUAGE: "openmp"
strategy:
# Prevent all build to stop if a single one fails
fail-fast: false
steps:
- name: Checkout devito
uses: actions/checkout@v3
- name: Setup conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.10"
activate-environment: devito
environment-file: environment-dev.yml
auto-activate-base: false
- name: Install dependencies
run: |
pip install -e .
pip install matplotlib
- name: Tests in examples
run: py.test --cov --cov-config=.coveragerc --cov-report=xml examples/
- name: Seismic acoustic examples
run: |
python examples/seismic/acoustic/acoustic_example.py --full
python examples/seismic/acoustic/acoustic_example.py --full --checkpointing
python examples/seismic/acoustic/acoustic_example.py --constant --full
python examples/seismic/acoustic/acoustic_example.py --fs
python examples/seismic/inversion/fwi.py
python examples/seismic/self_adjoint/example_iso.py
python examples/seismic/viscoacoustic/viscoacoustic_example.py
python examples/seismic/viscoacoustic/viscoacoustic_example.py -k kv
python examples/seismic/viscoacoustic/viscoacoustic_example.py -k maxwell
- name: Seismic tti examples
run: |
python examples/seismic/tti/tti_example.py -a basic
python examples/seismic/tti/tti_example.py -a basic --noazimuth
python examples/seismic/tti/tti_example.py -k staggered
python examples/seismic/tti/tti_example.py -nd 2 --full -so 12
python examples/seismic/tti/tti_example.py -nd 2 --full -so 4 --checkpointing
- name: Seismic elastic examples
run: |
python examples/seismic/elastic/elastic_example.py
python examples/seismic/viscoelastic/viscoelastic_example.py
- name: Linear algebra example
run: |
python examples/misc/linalg.py mat-vec mat-mat mat-mat-sum transpose-mat-vec
python examples/misc/linalg.py mat-vec -o mat-mat -o mat-mat-sum -o transpose-mat-vec -o
- name: CFD examples
run: |
python examples/cfd/example_diffusion.py
- name: Upload coverage to Codecov
if: matrix.name != 'pytest-docker-py37-gcc-omp'
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: ${{ matrix.name }}