From 862ca70ffea9b6610b68dfe1db5003920de80ea2 Mon Sep 17 00:00:00 2001 From: sampathweb <1437573+sampathweb@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:13:27 -0500 Subject: [PATCH] Uninstall pypi keras from TF in GitHub Actions --- .github/workflows/actions.yml | 2 ++ .github/workflows/nightly.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 2e421732d68..cac37abc94d 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -48,6 +48,7 @@ jobs: - name: Install dependencies run: | pip install -r requirements.txt --progress-bar off --upgrade + pip uninstall -y keras keras-nightly pip install -e "." --progress-bar off --upgrade - name: Test applications with pytest if: ${{ steps.filter.outputs.applications == 'true' }} @@ -108,6 +109,7 @@ jobs: - name: Install dependencies run: | pip install -r requirements.txt --progress-bar off --upgrade + pip uninstall -y keras keras-nightly pip install -e "." --progress-bar off --upgrade - name: Lint run: bash shell/lint.sh diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index b5364eada5e..c083a716296 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -39,6 +39,7 @@ jobs: - name: Install dependencies run: | pip install -r requirements.txt --progress-bar off --upgrade + pip uninstall -y keras keras-nightly pip install -e "." --progress-bar off --upgrade - name: Test integrations if: ${{ matrix.backend != 'numpy'}} @@ -78,6 +79,7 @@ jobs: - name: Install dependencies run: | pip install -r requirements.txt --progress-bar off --upgrade + pip uninstall -y keras keras-nightly pip install -e "." --progress-bar off --upgrade - name: Lint run: bash shell/lint.sh @@ -97,6 +99,7 @@ jobs: python -m pip install --upgrade pip setuptools pip install twine pip install -r requirements.txt --progress-bar off --upgrade + pip uninstall -y keras keras-nightly - name: Build wheel file run: | python pip_build.py --nightly