From 7915d31c1635a3c19252e5bcabeb32137102cac3 Mon Sep 17 00:00:00 2001 From: irenab Date: Mon, 9 Sep 2024 09:35:24 +0300 Subject: [PATCH] add numpy<2 requirement for tf<2.12 in CI --- .github/workflows/ci.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 29090b4..5cf2bed 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -75,7 +75,10 @@ jobs: python-version: ${{matrix.py_ver}} - name: Install dependencies run: | - pip install tensorflow==${{matrix.tf_ver}}.* + if [ ${{matrix.tf_ver}} == 2.10 ] || [ ${{matrix.tf_ver}} == 2.11 ];then + extra_req='numpy<2' + fi + pip install tensorflow==${{matrix.tf_ver}}.* $extra_req pip install -r requirements_test.txt pip list - name: Run pytest