Introduce non-eager task-submission system #287
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: Tutorials | |
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: Tutorials | |
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: Tutorials | |
shell: bash -l {0} | |
run: | | |
cd stride/stride_examples/tutorials/ | |
mrun -nw 1 -nth 2 python 07_script_running.py | |
py.test -p no:python --nbval-lax |