From 19a38801e0fea50e94e5d01ae59be9697c526b9f Mon Sep 17 00:00:00 2001 From: Ramesh Sampath <1437573+sampathweb@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:42:24 -0500 Subject: [PATCH] Uninstall pypi keras from TF in GitHub Actions (#18629) --- .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 2e421732d..cac37abc9 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 b5364eada..c083a7162 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