From 5cc358e4944dbbfa9a3437047b0730a9895376dc Mon Sep 17 00:00:00 2001 From: Klaus Reuter <khr@mpcdf.mpg.de> Date: Thu, 21 Jul 2022 10:58:28 +0200 Subject: [PATCH] retry educational example, fix2 --- .gitlab-ci.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30b6d08..7780b6c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,12 +11,13 @@ test_python_numpy: before_script: - pip install numpy==1.22.4 script: - - > - python -c - " - import numpy as np - A = np.random.rand(32,32) - B = np.linalg.inv(A) - C = A @ B - assert(np.allclose(C.diagonal(), np.ones(32))) - " + - | + python <<EOF + import numpy as np + n = 32 + A = np.random.rand(n,n) + B = np.linalg.inv(A) + C = A @ B + assert(np.allclose(C.diagonal(), np.ones(n))) + EOF + -- GitLab