Merge branch 'master' into review-next-steps #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nbval | |
on: | |
push: | |
# all | |
workflow_dispatch: | |
jobs: | |
docker-build-and-nbval: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Cache Docker layers | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ hashFiles('poetry.lock') }} | |
restore-keys: | | |
${{ runner.os }}-buildx-${{ hashFiles('poetry.lock') }} | |
# This build and push step does the same thing as `make docker-build`, but | |
# makes it easier to store and load caches, which is why we use it instead | |
- name: Build and Save Layers Locally | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./ | |
file: ./Dockerfile | |
load: true | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache | |
tags: python4compscience | |
- name: List Available Images | |
run: docker images | |
- name: Run NBVAL over all chapters | |
run: make docker-nbval |