From c3d322be95db4d8dd981ca6981d12d29acb22664 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Tue, 7 Nov 2023 11:30:40 -0500 Subject: [PATCH] CI: Set kernel version to use in external intrepreter from requirements --- .github/scripts/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/install.sh b/.github/scripts/install.sh index dd0dba9ad73..2277107c3d8 100755 --- a/.github/scripts/install.sh +++ b/.github/scripts/install.sh @@ -79,7 +79,8 @@ conda create -n jedi-test-env -q -y python=3.9 flask conda list -n jedi-test-env # Create environment to test conda env activation before launching a kernel -conda create -n spytest-ž -q -y -c conda-forge python=3.9 spyder-kernels +kernelVer="`cat requirements/main.yml | grep spyder-kernels | grep -o '[^>=]*$' | grep -o '^[^,<]*'`" +conda create -n spytest-ž -q -y -c conda-forge python=3.9 spyder-kernels="${kernelVer}" conda list -n spytest-ž # Install pyenv on Linux systems