Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI to test workflows #31

Open
jennyfothergill opened this issue May 13, 2021 · 0 comments
Open

Add CI to test workflows #31

jennyfothergill opened this issue May 13, 2021 · 0 comments

Comments

@jennyfothergill
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant