From 7fc9ad93e17c2706d98ee0281bcc864798b8b071 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Wed, 18 Dec 2024 15:27:10 +0100 Subject: [PATCH 01/16] feat: add tensorflow-cpu Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 97 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 tensorflow-cpu.yaml diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml new file mode 100644 index 00000000000..f2b58feb2ae --- /dev/null +++ b/tensorflow-cpu.yaml @@ -0,0 +1,97 @@ +package: + name: tensorflow-cpu + version: 0_git20241219 + epoch: 1 + description: tensorflow-cpu + copyright: + - license: Apache-2.0 + dependencies: + runtime: + - python-3.11 + - py3.11-pip + +vars: + pypi-package: tensorflow-cpu + prefix: /usr + +environment: + contents: + packages: + - build-base + - busybox + - py3.11-pip + - python-3.11 + environment: + # This is needed to work around the error "ValueError: ZIP does not support timestamps before 1980" + SOURCE_DATE_EPOCH: 315532800 + +pipeline: + - uses: git-checkout + with: + expected-commit: d311fe017c036143186f9185f491fa6d6461a84e + repository: https://github.com/tensorflow/build + branch: master + + - working-directory: tensorflow_runtime_dockerfiles + pipeline: + - name: Install cpu requirements + runs: | + python3 -m pip install \ + --no-cache-dir \ + --root ${{targets.contextdir}} \ + --prefix ${{vars.prefix}} \ + -r cpu.requirements.txt + + - name: Install Tensorflow + runs: | + python3 -m pip install \ + --no-cache-dir \ + --root ${{targets.contextdir}} \ + --prefix ${{vars.prefix}} \ + tf-nightly + + - name: Install jupyter requirements + runs: | + python3 -m pip install \ + --no-cache-dir \ + --root ${{targets.contextdir}} \ + --prefix ${{vars.prefix}} \ + -r jupyter.requirements.txt \ + -U + + - name: Install bashrc + runs: | + mkdir -p ${{targets.contextdir}}/etc + cp bashrc ${{targets.contextdir}}/etc/bash.bashrc + + - name: Install tensorflow tutorials + runs: | + mkdir -p ${{targets.contextdir}}/tf/tensorflow-tutorials + cp jupyter.readme.md ${{targets.contextdir}}/tf/tensorflow-tutorials/README.md +test: + environment: + contents: + packages: + - curl + pipeline: + - name: Test import of IPython kernel for Jupyter + runs: | + python3 -m ipykernel.kernelspec + - name: Test import of Tensorflow + - runs: | + python -c 'import tensorflow as tf' + - name: Test Juputer notebook run + runs: | + jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root >/dev/null 2>&1 & + pid=$! + sleep 5 + curl --fail --location --request GET --head --silent localhost:8888 + kill $pid + +update: + enabled: true + git: {} + schedule: + period: daily + reason: Upstream does not maintain tags or releases + From e7200299ad70889608ccee816643590a40d9f3dc Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Fri, 20 Dec 2024 16:48:08 +0100 Subject: [PATCH 02/16] chore(tensorflow-cpu): add test with tf lib and move to stable py package Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index f2b58feb2ae..d326a027ed7 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -48,7 +48,7 @@ pipeline: --no-cache-dir \ --root ${{targets.contextdir}} \ --prefix ${{vars.prefix}} \ - tf-nightly + ${{vars.pypi-package}} - name: Install jupyter requirements runs: | @@ -68,6 +68,11 @@ pipeline: runs: | mkdir -p ${{targets.contextdir}}/tf/tensorflow-tutorials cp jupyter.readme.md ${{targets.contextdir}}/tf/tensorflow-tutorials/README.md + + - name: Cleanup pycache + runs: | + find . -name '__pycache__' -exec rm -rf {} + + test: environment: contents: @@ -77,9 +82,27 @@ test: - name: Test import of IPython kernel for Jupyter runs: | python3 -m ipykernel.kernelspec - - name: Test import of Tensorflow - - runs: | - python -c 'import tensorflow as tf' + - name: Test Tensorflow library + runs: | + cat <<"EOF" >test.py + import tensorflow as tf + + # Check TensorFlow version + print("TensorFlow version:", tf.__version__) + + # Check if TensorFlow can access the CPU + print("Is built with CUDA:", tf.test.is_built_with_cuda()) + print("Available devices:") + for device in tf.config.list_physical_devices(): + print(device) + + # Perform a simple computation + a = tf.constant([1.0, 2.0, 3.0]) + b = tf.constant([4.0, 5.0, 6.0]) + c = tf.add(a, b) + print("Result of addition:", c.numpy()) + EOF + python test.py - name: Test Juputer notebook run runs: | jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root >/dev/null 2>&1 & From 923166bf2029698342d465bab7ea2a4db9f478cd Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Fri, 20 Dec 2024 16:50:26 +0100 Subject: [PATCH 03/16] chore(tensorflow-cpu): add bash as runtime dep Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index d326a027ed7..8f462c69d8b 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -1,7 +1,7 @@ package: name: tensorflow-cpu version: 0_git20241219 - epoch: 1 + epoch: 0 description: tensorflow-cpu copyright: - license: Apache-2.0 @@ -9,6 +9,7 @@ package: runtime: - python-3.11 - py3.11-pip + - bash vars: pypi-package: tensorflow-cpu From c2447dbf747de6f90fbfc7e3d10f9731c84b1370 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Mon, 6 Jan 2025 18:22:44 +0100 Subject: [PATCH 04/16] chore(tensorflow-cpu): update version Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index 8f462c69d8b..a0fb0f32fb1 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -1,6 +1,6 @@ package: name: tensorflow-cpu - version: 0_git20241219 + version: 0_git20250106 epoch: 0 description: tensorflow-cpu copyright: From 645f4c554be13df9fc67898e30c560f184d2d18e Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Mon, 6 Jan 2025 18:46:39 +0100 Subject: [PATCH 05/16] chore(tensorflow-cpu): skip lint valid-pipeline-git-checkout-tag Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index a0fb0f32fb1..ea9f181b91a 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -1,3 +1,4 @@ +#nolint:valid-pipeline-git-checkout-tag package: name: tensorflow-cpu version: 0_git20250106 @@ -42,7 +43,6 @@ pipeline: --root ${{targets.contextdir}} \ --prefix ${{vars.prefix}} \ -r cpu.requirements.txt - - name: Install Tensorflow runs: | python3 -m pip install \ @@ -50,7 +50,6 @@ pipeline: --root ${{targets.contextdir}} \ --prefix ${{vars.prefix}} \ ${{vars.pypi-package}} - - name: Install jupyter requirements runs: | python3 -m pip install \ @@ -59,17 +58,14 @@ pipeline: --prefix ${{vars.prefix}} \ -r jupyter.requirements.txt \ -U - - - name: Install bashrc + - name: Install bashrc runs: | mkdir -p ${{targets.contextdir}}/etc cp bashrc ${{targets.contextdir}}/etc/bash.bashrc - - name: Install tensorflow tutorials runs: | mkdir -p ${{targets.contextdir}}/tf/tensorflow-tutorials cp jupyter.readme.md ${{targets.contextdir}}/tf/tensorflow-tutorials/README.md - - name: Cleanup pycache runs: | find . -name '__pycache__' -exec rm -rf {} + @@ -118,4 +114,3 @@ update: schedule: period: daily reason: Upstream does not maintain tags or releases - From 2cb7cca25ce65666052c92e49f6ae13bb1633cf1 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Tue, 7 Jan 2025 15:08:56 +0100 Subject: [PATCH 06/16] chore(tensorflow-cpu): remove support for arm64 Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index ea9f181b91a..3cd1b3a9a94 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -6,6 +6,8 @@ package: description: tensorflow-cpu copyright: - license: Apache-2.0 + target-architecture: + - x86_64 dependencies: runtime: - python-3.11 From c20eb2a6b23c74b01535873d96f995fec57e1e17 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Tue, 7 Jan 2025 18:13:04 +0100 Subject: [PATCH 07/16] chore(tensorflow-cpu): update runtime deps Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index 3cd1b3a9a94..34c5a159292 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -10,9 +10,13 @@ package: - x86_64 dependencies: runtime: - - python-3.11 - - py3.11-pip - bash + - build-base + - curl + - pkgconf + - py3.11-pip + - python-3.11 + - unzip vars: pypi-package: tensorflow-cpu From 9bd9428043903817f88cd66298ceb8a863ad4754 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Wed, 8 Jan 2025 11:06:03 +0100 Subject: [PATCH 08/16] chore(tensorflow-cpu): update version Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index 34c5a159292..6b460de7fda 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -1,7 +1,7 @@ #nolint:valid-pipeline-git-checkout-tag package: name: tensorflow-cpu - version: 0_git20250106 + version: 0_git20250107 epoch: 0 description: tensorflow-cpu copyright: @@ -19,7 +19,7 @@ package: - unzip vars: - pypi-package: tensorflow-cpu + pypi-package: tensorflow prefix: /usr environment: @@ -36,7 +36,7 @@ environment: pipeline: - uses: git-checkout with: - expected-commit: d311fe017c036143186f9185f491fa6d6461a84e + expected-commit: 35a7dbc754193523e5582ce5b5cbbb4c07cff7b2 repository: https://github.com/tensorflow/build branch: master From 8559a47490994e55db48c7945a52d795b3bb13c2 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Wed, 8 Jan 2025 14:53:05 +0100 Subject: [PATCH 09/16] refactor(tensorflow-cpu): use variable for py version Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index 6b460de7fda..774eb890d2b 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -14,12 +14,13 @@ package: - build-base - curl - pkgconf - - py3.11-pip - - python-3.11 + - py${{vars.py-version}}-pip + - python-${{vars.py-version}}-dev - unzip vars: - pypi-package: tensorflow + py-version: 3.11 + pypi-package: tensorflow-cpu prefix: /usr environment: @@ -27,8 +28,8 @@ environment: packages: - build-base - busybox - - py3.11-pip - - python-3.11 + - py${{vars.py-version}}-pip + - python-${{vars.py-version}} environment: # This is needed to work around the error "ValueError: ZIP does not support timestamps before 1980" SOURCE_DATE_EPOCH: 315532800 @@ -44,21 +45,21 @@ pipeline: pipeline: - name: Install cpu requirements runs: | - python3 -m pip install \ + pip${{vars.py-version}} install \ --no-cache-dir \ --root ${{targets.contextdir}} \ --prefix ${{vars.prefix}} \ -r cpu.requirements.txt - name: Install Tensorflow runs: | - python3 -m pip install \ + pip${{vars.py-version}} install \ --no-cache-dir \ --root ${{targets.contextdir}} \ --prefix ${{vars.prefix}} \ ${{vars.pypi-package}} - name: Install jupyter requirements runs: | - python3 -m pip install \ + pip${{vars.py-version}} install \ --no-cache-dir \ --root ${{targets.contextdir}} \ --prefix ${{vars.prefix}} \ @@ -83,8 +84,10 @@ test: - curl pipeline: - name: Test import of IPython kernel for Jupyter - runs: | - python3 -m ipykernel.kernelspec + uses: python/import + with: + imports: | + import ipykernel.kernelspec - name: Test Tensorflow library runs: | cat <<"EOF" >test.py @@ -105,14 +108,15 @@ test: c = tf.add(a, b) print("Result of addition:", c.numpy()) EOF - python test.py - - name: Test Juputer notebook run + python${{vars.py-version}} test.py + - name: Test Jupyter notebook run runs: | jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root >/dev/null 2>&1 & pid=$! sleep 5 curl --fail --location --request GET --head --silent localhost:8888 kill $pid + - runs: python${{vars.py-version}} -m pip --version update: enabled: true From c1415c50227a712f7ef67888d5a5b9349f6f3a86 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Wed, 8 Jan 2025 15:18:13 +0100 Subject: [PATCH 10/16] chore(tensorflow-cpu): update version Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index 774eb890d2b..7239bd31cf5 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -1,7 +1,7 @@ #nolint:valid-pipeline-git-checkout-tag package: name: tensorflow-cpu - version: 0_git20250107 + version: 0_git20250108 epoch: 0 description: tensorflow-cpu copyright: From a9eb3bbf2d30e1c36471178ef4b9e1f4a266b964 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Thu, 9 Jan 2025 10:31:41 +0100 Subject: [PATCH 11/16] chore(tensorflow-cpu): remove debug tests Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index 7239bd31cf5..a00be29e941 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -116,7 +116,6 @@ test: sleep 5 curl --fail --location --request GET --head --silent localhost:8888 kill $pid - - runs: python${{vars.py-version}} -m pip --version update: enabled: true From 712e269602de4338905eed2497bcd72ca53f2e58 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Thu, 9 Jan 2025 14:27:58 +0100 Subject: [PATCH 12/16] chore(tensorflow-cpu): test jupyter with daemon check test pipeline Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index a00be29e941..ed4f1da1b2a 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -110,12 +110,14 @@ test: EOF python${{vars.py-version}} test.py - name: Test Jupyter notebook run - runs: | - jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root >/dev/null 2>&1 & - pid=$! - sleep 5 - curl --fail --location --request GET --head --silent localhost:8888 - kill $pid + uses: test/daemon-check-output + with: + start: | + jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root + post: | + curl --fail --location --request GET --head --silent localhost:8888 + expected_output: "is running at:" + timeout: 10 update: enabled: true From 549f60735cf767451a781c391b01567d47170e00 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Thu, 9 Jan 2025 16:31:07 +0100 Subject: [PATCH 13/16] refactor(tensorflow-cpu): install python virtual environment Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index ed4f1da1b2a..f6ac7b7a829 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -8,6 +8,12 @@ package: - license: Apache-2.0 target-architecture: - x86_64 + options: + # We're creating a virtual environment. + # Don't pull in other packages if dependencies are already vendored. + no-depends: true + # Don't install if something is vendored that another package depends on. + no-provides: true dependencies: runtime: - bash @@ -21,7 +27,7 @@ package: vars: py-version: 3.11 pypi-package: tensorflow-cpu - prefix: /usr + shared: /usr/share/tensorflow environment: contents: @@ -37,34 +43,43 @@ environment: pipeline: - uses: git-checkout with: - expected-commit: 35a7dbc754193523e5582ce5b5cbbb4c07cff7b2 + expected-commit: e23ae5591020ef3cb2917293ed92af7ea70bcdb1 repository: https://github.com/tensorflow/build branch: master - working-directory: tensorflow_runtime_dockerfiles pipeline: + - name: Create virtual environment + runs: | + python -m venv .venv - name: Install cpu requirements runs: | + source .venv/bin/activate pip${{vars.py-version}} install \ --no-cache-dir \ - --root ${{targets.contextdir}} \ - --prefix ${{vars.prefix}} \ -r cpu.requirements.txt - name: Install Tensorflow runs: | + source .venv/bin/activate pip${{vars.py-version}} install \ --no-cache-dir \ - --root ${{targets.contextdir}} \ - --prefix ${{vars.prefix}} \ ${{vars.pypi-package}} - name: Install jupyter requirements runs: | + source .venv/bin/activate pip${{vars.py-version}} install \ --no-cache-dir \ - --root ${{targets.contextdir}} \ - --prefix ${{vars.prefix}} \ -r jupyter.requirements.txt \ -U + - name: Cleanup the virtual environment + runs: | + find .venv -name "*.pyc" -delete + find .venv -name "__pycache__" -exec rm -rf {} + + - name: Install the virtual environment + runs: | + mkdir -p ${{targets.contextdir}}/${{vars.shared}} + mv .venv/* ${{targets.contextdir}}/${{vars.shared}} + sed -i "s|/home/build/tensorflow_runtime_dockerfiles/.venv|${{vars.shared}}|g" ${{targets.contextdir}}/${{vars.shared}}/bin/* - name: Install bashrc runs: | mkdir -p ${{targets.contextdir}}/etc @@ -73,15 +88,14 @@ pipeline: runs: | mkdir -p ${{targets.contextdir}}/tf/tensorflow-tutorials cp jupyter.readme.md ${{targets.contextdir}}/tf/tensorflow-tutorials/README.md - - name: Cleanup pycache - runs: | - find . -name '__pycache__' -exec rm -rf {} + test: environment: contents: packages: - curl + environment: + PYTHONPATH: ${{vars.shared}}/lib/python${{vars.py-version}}/site-packages pipeline: - name: Test import of IPython kernel for Jupyter uses: python/import @@ -113,7 +127,7 @@ test: uses: test/daemon-check-output with: start: | - jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root + ${{vars.shared}}/bin/jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root post: | curl --fail --location --request GET --head --silent localhost:8888 expected_output: "is running at:" From 9a834f7ff3ae189403ec1a192ed1871d411f675a Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Fri, 10 Jan 2025 12:57:22 +0100 Subject: [PATCH 14/16] test(tensorflow-cpu): fail to build on python version mismatch Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index f6ac7b7a829..6d6ab062c22 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -49,6 +49,11 @@ pipeline: - working-directory: tensorflow_runtime_dockerfiles pipeline: + - name: Check latest supported Python version + - runs: | + PYTHON_VERSION=$(grep -E "^ARG PYTHON_VERSION" cpu.Dockerfile | cut -d '=' -f2 | sed 's|python||g') + test "${{vars.py-version}}" == "${PYTHON_VERSION}" || \ + { echo "error: Python version does not match the latest supported version: want: ${{vars.py-version}} got: ${PYTHON_VERSION} from $(grep -H -n -E '^ARG PYTHON_VERSION' cpu.Dockerfile)" && exit 1; } - name: Create virtual environment runs: | python -m venv .venv From 479df0817fc94d76cd94ac406413c45a6ecf609f Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Mon, 13 Jan 2025 10:14:54 +0100 Subject: [PATCH 15/16] chore(tensorflow-cpu): remove python dev runtime dep Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index 6d6ab062c22..3094803c417 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -21,7 +21,7 @@ package: - curl - pkgconf - py${{vars.py-version}}-pip - - python-${{vars.py-version}}-dev + - python-${{vars.py-version}} - unzip vars: From 8b0babcb2c17a20f95c918b35a8f26a05dc00be0 Mon Sep 17 00:00:00 2001 From: Massimiliano Giovagnoli Date: Mon, 13 Jan 2025 10:32:02 +0100 Subject: [PATCH 16/16] chore(tensorflow-cpu): do not pin version on py binaries Signed-off-by: Massimiliano Giovagnoli --- tensorflow-cpu.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tensorflow-cpu.yaml b/tensorflow-cpu.yaml index 3094803c417..bb0732a2c54 100644 --- a/tensorflow-cpu.yaml +++ b/tensorflow-cpu.yaml @@ -60,19 +60,19 @@ pipeline: - name: Install cpu requirements runs: | source .venv/bin/activate - pip${{vars.py-version}} install \ + pip install \ --no-cache-dir \ -r cpu.requirements.txt - name: Install Tensorflow runs: | source .venv/bin/activate - pip${{vars.py-version}} install \ + pip install \ --no-cache-dir \ ${{vars.pypi-package}} - name: Install jupyter requirements runs: | source .venv/bin/activate - pip${{vars.py-version}} install \ + pip install \ --no-cache-dir \ -r jupyter.requirements.txt \ -U @@ -127,7 +127,7 @@ test: c = tf.add(a, b) print("Result of addition:", c.numpy()) EOF - python${{vars.py-version}} test.py + python test.py - name: Test Jupyter notebook run uses: test/daemon-check-output with: