From fc72c09273e1cb2e0bf39f9f3a9ff7dfd7bd75b4 Mon Sep 17 00:00:00 2001 From: Reuven <44209964+reuvenperetz@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:25:39 +0200 Subject: [PATCH] Add testing using TF2.14 (#837) * Replace workflows that use tf2.11 with tf2.14 * Add python3.11 workflows to tf 2.13 and 2.12 * update readme --------- Co-authored-by: reuvenp --- ...s211.yml => run_tests_python310_keras214.yml} | 4 ++-- ...s211.yml => run_tests_python311_keras212.yml} | 6 +++--- .../workflows/run_tests_python311_keras213.yml | 16 ++++++++++++++++ .../workflows/run_tests_python311_keras214.yml | 16 ++++++++++++++++ ...as211.yml => run_tests_python39_keras214.yml} | 4 ++-- README.md | 8 ++++---- 6 files changed, 43 insertions(+), 11 deletions(-) rename .github/workflows/{run_tests_python310_keras211.yml => run_tests_python310_keras214.yml} (80%) rename .github/workflows/{run_tests_python38_keras211.yml => run_tests_python311_keras212.yml} (70%) create mode 100644 .github/workflows/run_tests_python311_keras213.yml create mode 100644 .github/workflows/run_tests_python311_keras214.yml rename .github/workflows/{run_tests_python39_keras211.yml => run_tests_python39_keras214.yml} (81%) diff --git a/.github/workflows/run_tests_python310_keras211.yml b/.github/workflows/run_tests_python310_keras214.yml similarity index 80% rename from .github/workflows/run_tests_python310_keras211.yml rename to .github/workflows/run_tests_python310_keras214.yml index a09e9a2a1..2f65a5bb1 100644 --- a/.github/workflows/run_tests_python310_keras211.yml +++ b/.github/workflows/run_tests_python310_keras214.yml @@ -1,4 +1,4 @@ -name: Python 3.10, Keras 2.11 +name: Python 3.10, Keras 2.14 on: workflow_dispatch: # Allow manual triggers schedule: @@ -13,4 +13,4 @@ jobs: uses: ./.github/workflows/run_keras_tests.yml with: python-version: "3.10" - tf-version: "2.11.*" \ No newline at end of file + tf-version: "2.14.*" \ No newline at end of file diff --git a/.github/workflows/run_tests_python38_keras211.yml b/.github/workflows/run_tests_python311_keras212.yml similarity index 70% rename from .github/workflows/run_tests_python38_keras211.yml rename to .github/workflows/run_tests_python311_keras212.yml index e0a70d50c..da5924e76 100644 --- a/.github/workflows/run_tests_python38_keras211.yml +++ b/.github/workflows/run_tests_python311_keras212.yml @@ -1,4 +1,4 @@ -name: Python 3.8, Keras 2.11 +name: Python 3.11, Keras 2.12 on: workflow_dispatch: # Allow manual triggers schedule: @@ -12,5 +12,5 @@ jobs: run-tests: uses: ./.github/workflows/run_keras_tests.yml with: - python-version: "3.8" - tf-version: "2.11.*" \ No newline at end of file + python-version: "3.11" + tf-version: "2.12.*" \ No newline at end of file diff --git a/.github/workflows/run_tests_python311_keras213.yml b/.github/workflows/run_tests_python311_keras213.yml new file mode 100644 index 000000000..7d8f215db --- /dev/null +++ b/.github/workflows/run_tests_python311_keras213.yml @@ -0,0 +1,16 @@ +name: Python 3.11, Keras 2.13 +on: + workflow_dispatch: # Allow manual triggers + schedule: + - cron: 0 0 * * * + pull_request: + branches: + - main + + +jobs: + run-tests: + uses: ./.github/workflows/run_keras_tests.yml + with: + python-version: "3.11" + tf-version: "2.13.*" \ No newline at end of file diff --git a/.github/workflows/run_tests_python311_keras214.yml b/.github/workflows/run_tests_python311_keras214.yml new file mode 100644 index 000000000..16482129f --- /dev/null +++ b/.github/workflows/run_tests_python311_keras214.yml @@ -0,0 +1,16 @@ +name: Python 3.11, Keras 2.14 +on: + workflow_dispatch: # Allow manual triggers + schedule: + - cron: 0 0 * * * + pull_request: + branches: + - main + + +jobs: + run-tests: + uses: ./.github/workflows/run_keras_tests.yml + with: + python-version: "3.11" + tf-version: "2.14.*" \ No newline at end of file diff --git a/.github/workflows/run_tests_python39_keras211.yml b/.github/workflows/run_tests_python39_keras214.yml similarity index 81% rename from .github/workflows/run_tests_python39_keras211.yml rename to .github/workflows/run_tests_python39_keras214.yml index 28819cb0b..0b0f32dc2 100644 --- a/.github/workflows/run_tests_python39_keras211.yml +++ b/.github/workflows/run_tests_python39_keras214.yml @@ -1,4 +1,4 @@ -name: Python 3.9, Keras 2.11 +name: Python 3.9, Keras 2.14 on: workflow_dispatch: # Allow manual triggers schedule: @@ -13,4 +13,4 @@ jobs: uses: ./.github/workflows/run_keras_tests.yml with: python-version: "3.9" - tf-version: "2.11.*" \ No newline at end of file + tf-version: "2.14.*" \ No newline at end of file diff --git a/README.md b/README.md index 65137ba4f..f9df23bc6 100644 --- a/README.md +++ b/README.md @@ -58,11 +58,11 @@ Currently, MCT is being tested on various Python, Pytorch and TensorFlow version | Python 3.10 | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_pytorch112.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_pytorch112.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_pytorch113.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_pytorch113.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_pytorch20.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_pytorch20.yml) | -| | TensorFlow 2.11 | TensorFlow 2.12 | TensorFlow 2.13 | +| | TensorFlow 2.12 | TensorFlow 2.13 | TensorFlow 2.14 | |-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Python 3.8 | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python38_keras211.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python38_keras211.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python38_keras212.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python38_keras212.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python38_keras213.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python38_keras213.yml) | -| Python 3.9 | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras211.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras211.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras212.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras212.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras213.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras213.yml) | -| Python 3.10 | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras211.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras211.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras212.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras212.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras213.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras213.yml) | +| Python 3.9 | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras212.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras212.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras213.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras213.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras214.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python39_keras214.yml) | +| Python 3.10 | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras212.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras212.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras213.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras213.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras214.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python310_keras214.yml) | +| Python 3.11 | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python311_keras212.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python311_keras212.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python311_keras213.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python311_keras213.yml) | [![Run Tests](https://github.com/sony/model_optimization/actions/workflows/run_tests_python311_keras214.yml/badge.svg)](https://github.com/sony/model_optimization/actions/workflows/run_tests_python311_keras214.yml) | ## Supported Features