From 844cd67bec867490fbd1cb1651cd48669705bfe4 Mon Sep 17 00:00:00 2001 From: "Hock, Martin" <martin.hock@fst.tu-darmstadt.de> Date: Wed, 8 Mar 2023 08:54:57 +0100 Subject: [PATCH] Add a run of the present notebooks to CICD to test for plain errors --- .gitlab-ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d09a370..a50405a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -43,11 +43,17 @@ test: - flake8-nb --max-line-length 88 ausarbeitung.ipynb -#run: - #tags: - #- env:docker - #script: +run: + tags: + - env:docker + script: #- pip install -r requirements.txt + - pip install pytest nbmake + - pytest --nbmake ./ + # Test our notebooks, the included example will also result in errors + # if plain errors like imports or typos appear + # Does not replace unit tests + #- python trial_json.py # an alternative approach is to install and run: # - pip install dist/* -- GitLab