Explorar o código

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

Fabian Peter Hammerle %!s(int64=3) %!d(string=hai) anos
pai
achega
2432da8101
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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