name: Jupyter notebooks

on:
  # Trigger the workflow on push or pull request,
  # but only for the master branch
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  test:
    name: Test Jupyter notebooks on ${{ matrix.python-version }} and ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        python-version: ['3.6', '3.7']
        os: [ubuntu-latest]
        gcc-version: [9]

    steps:
    - uses: actions/checkout@v1
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install GCC ${{ matrix.gcc-version }}
      run : |
        sudo apt-get install -y g++-${{ matrix.gcc-version }}

    - name: Install MPI
      run : |
        sudo apt-get install -y mpich libmpich-dev

    - name: Install dependencies
      run: |
        pip install --upgrade pip
        pip install -e .[extras]

    - name: Evaluate cells of example notebooks
      env:
        CC: ${{ matrix.gcc-version }}
      run: |
        for notebook in examples/cfd examples/seismic/tutorials examples/compiler examples/userapi
        do
            DEVITO_ARCH=gcc-${{ matrix.gcc-version }} pytest -vrs --nbval $notebook
        done

name: Jupyter notebooks

on:
  # Trigger the workflow on push or pull request,
  # but only for the master branch
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  test:
    name: Test Jupyter notebooks on ${{ matrix.python-version }} and ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        python-version: ['3.6', '3.7']
        os: [ubuntu-latest]
        gcc-version: [9]

    steps:
    - uses: actions/checkout@v1
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install GCC ${{ matrix.gcc-version }}
      run : |
        sudo apt-get install -y g++-${{ matrix.gcc-version }}

    - name: Install MPI
      run : |
        sudo apt-get install -y mpich libmpich-dev

    - name: Install dependencies
      run: |
        pip install --upgrade pip
        pip install -e .[extras]

    - name: Evaluate cells of example notebooks
      env:
        CC: ${{ matrix.gcc-version }}
      run: |
        for notebook in examples/cfd examples/seismic/tutorials examples/compiler examples/userapi
        do
            DEVITO_ARCH=gcc-${{ matrix.gcc-version }} pytest --nbval $notebook
        done

Reduce verbosity of pytest output
Reduce verbosity of pytest output

REF:

    https://github.com/devitocodes/devito/pull/1069#discussion_r364800231

	modified:   .github/workflows/tutorials.yml
