mosdef_tutorials icon indicating copy to clipboard operation
mosdef_tutorials copied to clipboard

Add CI to test workflows

Open jennyfothergill opened this issue 4 years ago • 0 comments

we could use pytest plugin nbval to check our notebooks. Here is an actions yml from our notebook tutorials repo:

name: Test PR and Image
on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
jobs:
  test:
    runs-on: ubuntu-latest
    container: 
      image: cmelab/notebook-tutorials
    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
    # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
    - uses: actions/checkout@v1
    - name: test notebooks
      shell: bash -l {0}
      run: python -m pytest -v --nbval-lax

jennyfothergill avatar May 13 '21 18:05 jennyfothergill