Skip to content

Commit

Permalink
Add a test to CI for checking docker build and tutorial notebooks (#652)
Browse files Browse the repository at this point in the history
* Add a test to CI for checking docker build and tutorial notebooks

---------

Co-authored-by: Paul Schweigert <paul@paulschweigert.com>
  • Loading branch information
caleb-johnson and psschwei authored Jun 12, 2023
1 parent 1968e1b commit 01b8ef5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker notebook tests

on:
pull_request:
branches: [ main ]

jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Build the containers
run: docker compose -f docker-compose-dev.yml --profile jupyter build
- name: Run the jupyter profile
run: docker compose -f docker-compose-dev.yml --profile jupyter up -d
- name: Give containers time to initialize
shell: bash
run: sleep 90
- name: Test notebooks in the docker environment
shell: bash
run: docker exec qs-jupyter "bash" "-c" "pip install nbmake pytest && pytest --nbmake --ignore=/home/jovyan/serverless/guides/07_working_with_datasets.ipynb /home/jovyan/serverless/"
- name: Dump logs on failure
if: ${{ failure() }}
run: |
docker compose logs gateway
docker compose logs jupyter

0 comments on commit 01b8ef5

Please sign in to comment.