q-optimize/c3

View on GitHub
.github/workflows/notebook_test.yml

Summary

Maintainability
Test Coverage
name: Notebook Test

on:
  push:
    branches: [ master, dev, 'release/*' ]
  pull_request:
    branches: [ master, dev, 'release/*' ]
  workflow_dispatch:

jobs:
  notebook_run_check:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest]
        python-version: ['3.10']
    env:
      OS: ${{ matrix.os }}
      PYTHON: ${{ matrix.python-version }}
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt
        pip install jupyter notebook ipykernel matplotlib
        pip install .
    - name: Test with nbconvert
      run: |
        jupyter nbconvert --to notebook --inplace --execute examples/*.ipynb