Skip to content

Commit 76ed27e

Browse files
author
Ricardo Ocampo
committedMar 22, 2020
Add test configuration
1 parent 04c9d9d commit 76ed27e

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed
 

‎Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@ clean-notebooks:
22
echo "Cleaning notebooks"
33
find ./ -name "*.ipynb" | xargs python3 -m nbconvert --ClearOutputPreprocessor.enabled=True --inplace
44
echo "Removing checkpoints"
5-
find . -type d -iname .ipynb_checkpoints -exec rm -r {} +
5+
find . -type d -iname .ipynb_checkpoints -exec rm -r {} +
6+
7+
build-images:
8+
docker-compose build notebook
9+
10+
run-tests: build-images
11+
docker-compose -f docker-compose.yml -f docker-compose.test.yml run notebook

‎docker-compose.test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
version: "3.6"
2+
services:
3+
notebook:
4+
entrypoint: "pytest --nbval-lax image/quality/brisque.ipynb"

‎docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ FROM jupyter/minimal-notebook:latest
22

33
ADD requirements /requirements
44

5-
RUN pip install -r /requirements/requirements.txt
5+
RUN pip install -r /requirements/requirements.dev.txt

‎requirements/requirements.dev.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-r requirements.txt
2+
3+
pytest==5.4.1
4+
nbval==0.9.5

0 commit comments

Comments
 (0)
Please sign in to comment.