Skip to content

Add CI to test workflows #31

Description

@jennyfothergill

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions