misc: fix UnboundTuple for None partile #5792
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Examples | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
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.8 | |
activate-environment: devito | |
environment-file: environment-dev.yml | |
auto-activate-base: false | |
- name: Install dependencies | |
run: | | |
pip install -e .[tests,extras] | |
- 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 | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
name: ${{ matrix.name }} |