소스 검색

pipeline / example notebooks: verify that execution does not alter (output) cells

Fabian Peter Hammerle 3 년 전
부모
커밋
2432da8101
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      .github/workflows/python.yml

+ 5 - 1
.github/workflows/python.yml

@@ -90,4 +90,8 @@ jobs:
     - run: pipenv graph
     # > the default behaviour is to abort conversion [...] if one of the cells throws an error
     - run: pipenv run jupyter nbconvert --execute --inplace *.ipynb
-    - run: git diff
+    # revert line specifying version of python interpreter
+    - run: sudo apt-get update
+    - run: sudo apt-get install --yes --no-install-recommends patchutils
+    - run: git diff --unified=0 | grepdiff --output-matching=hunk '^   "version":' | patch --reverse
+    - run: git diff --exit-code