diff --git a/.github/workflows/compatibility_keras_tests.yml b/.github/workflows/compatibility_keras_tests.yml index 24a05f8..61d300c 100644 --- a/.github/workflows/compatibility_keras_tests.yml +++ b/.github/workflows/compatibility_keras_tests.yml @@ -16,7 +16,7 @@ on: description: 'TF version' required: true type: string - default: '2.12.*' + default: '2.14.*' jobs: run-tensorflow-tests: @@ -44,6 +44,7 @@ jobs: export PYTHONPATH="$PWD:${PYTHONPATH}" echo "Updated PYTHONPATH: $PYTHONPATH" cd .. + python -c "import mct_quantizers; print(mct_quantizers.__version__)" python tests/compatibility_tests/keras_comp_tests/compatibility_weights_save_model_test_suite.py ${{ inputs.save_version }} python tests/compatibility_tests/keras_comp_tests/compatibility_activation_save_model_test_suite.py ${{ inputs.save_version }} - name: Checkout to MCT Quantizers latest version @@ -56,5 +57,6 @@ jobs: export PYTHONPATH="$PWD:${PYTHONPATH}" echo "Updated PYTHONPATH: $PYTHONPATH" cd .. + python -c "import mct_quantizers; print(mct_quantizers.__version__)" python tests/compatibility_tests/keras_comp_tests/compatibility_weights_load_model_test_suite.py ${{ inputs.save_version }} python tests/compatibility_tests/keras_comp_tests/compatibility_activation_load_model_test_suite.py ${{ inputs.save_version }} \ No newline at end of file diff --git a/.github/workflows/compatibility_torch_tests.yml b/.github/workflows/compatibility_torch_tests.yml index d341283..0a2f115 100644 --- a/.github/workflows/compatibility_torch_tests.yml +++ b/.github/workflows/compatibility_torch_tests.yml @@ -16,7 +16,7 @@ on: description: 'Torch version' required: true type: string - default: '2.0.*' + default: '2.3.*' jobs: run-torch-tests: @@ -29,21 +29,11 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ inputs.python_version }} - - name: Modify requirements for Torch 2.2 - if: startsWith(inputs.torch_version, '2.2') - run: | - grep -v 'numpy' requirements.txt > temp_requirements.txt - echo "numpy<2" >> temp_requirements.txt - mv temp_requirements.txt requirements.txt - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install torch==${{ inputs.torch_version }} "onnx<1.18" "onnxruntime<1.22" "onnxruntime-extensions<0.14" - - name: Revert requirements for Torch 2.2 - if: startsWith(inputs.torch_version, '2.2') - run: | - git checkout . - name: Checkout to MCT Quantizers requested tag for saving test models run: | git checkout tags/${{ inputs.save_version }} @@ -54,6 +44,7 @@ jobs: export PYTHONPATH="$PWD:${PYTHONPATH}" echo "Updated PYTHONPATH: $PYTHONPATH" cd .. + python -c "import mct_quantizers; print(mct_quantizers.__version__)" python tests/compatibility_tests/torch_comp_tests/compatibility_weights_save_model_test_suite.py ${{ inputs.save_version }} python tests/compatibility_tests/torch_comp_tests/compatibility_activation_save_model_test_suite.py ${{ inputs.save_version }} - name: Checkout to MCT Quantizers latest version @@ -66,5 +57,6 @@ jobs: export PYTHONPATH="$PWD:${PYTHONPATH}" echo "Updated PYTHONPATH: $PYTHONPATH" cd .. + python -c "import mct_quantizers; print(mct_quantizers.__version__)" python tests/compatibility_tests/torch_comp_tests/compatibility_weights_load_model_test_suite.py ${{ inputs.save_version }} python tests/compatibility_tests/torch_comp_tests/compatibility_activation_load_model_test_suite.py ${{ inputs.save_version }} diff --git a/.github/workflows/forward_compatibility_keras_tests.yml b/.github/workflows/forward_compatibility_keras_tests.yml index ec84897..323e9cf 100644 --- a/.github/workflows/forward_compatibility_keras_tests.yml +++ b/.github/workflows/forward_compatibility_keras_tests.yml @@ -16,7 +16,7 @@ on: description: 'TF version' required: true type: string - default: '2.12.*' + default: '2.14.*' jobs: run-tensorflow-tests: @@ -41,6 +41,7 @@ jobs: export PYTHONPATH="$PWD:${PYTHONPATH}" echo "Updated PYTHONPATH: $PYTHONPATH" cd .. + python -c "import mct_quantizers; print(mct_quantizers.__version__)" python tests/compatibility_tests/keras_comp_tests/compatibility_weights_save_model_test_suite.py ${{ inputs.load_version }} python tests/compatibility_tests/keras_comp_tests/compatibility_activation_save_model_test_suite.py ${{ inputs.load_version }} - name: Checkout to MCT Quantizers requested tag for loading test models @@ -53,5 +54,6 @@ jobs: export PYTHONPATH="$PWD:${PYTHONPATH}" echo "Updated PYTHONPATH: $PYTHONPATH" cd .. + python -c "import mct_quantizers; print(mct_quantizers.__version__)" python tests/compatibility_tests/keras_comp_tests/compatibility_weights_load_model_test_suite.py ${{ inputs.load_version }} python tests/compatibility_tests/keras_comp_tests/compatibility_activation_load_model_test_suite.py ${{ inputs.load_version }} \ No newline at end of file diff --git a/.github/workflows/forward_compatibility_torch_tests.yml b/.github/workflows/forward_compatibility_torch_tests.yml index 0588b8e..7dbb88c 100644 --- a/.github/workflows/forward_compatibility_torch_tests.yml +++ b/.github/workflows/forward_compatibility_torch_tests.yml @@ -16,7 +16,7 @@ on: description: 'Torch version' required: true type: string - default: '2.0.*' + default: '2.3.*' jobs: run-torch-tests: @@ -29,21 +29,11 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ inputs.python_version }} - - name: Modify requirements for Torch 2.2 - if: startsWith(inputs.torch_version, '2.2') - run: | - grep -v 'numpy' requirements.txt > temp_requirements.txt - echo "numpy<2" >> temp_requirements.txt - mv temp_requirements.txt requirements.txt - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install torch==${{ inputs.torch_version }} "onnx<1.18" "onnxruntime<1.22" "onnxruntime-extensions<0.14" - - name: Revert requirements for Torch 2.2 - if: startsWith(inputs.torch_version, '2.2') - run: | - git checkout . - name: Run save model tests with latest version run: | cd tests @@ -51,6 +41,7 @@ jobs: export PYTHONPATH="$PWD:${PYTHONPATH}" echo "Updated PYTHONPATH: $PYTHONPATH" cd .. + python -c "import mct_quantizers; print(mct_quantizers.__version__)" python tests/compatibility_tests/torch_comp_tests/compatibility_weights_save_model_test_suite.py ${{ inputs.load_version }} python tests/compatibility_tests/torch_comp_tests/compatibility_activation_save_model_test_suite.py ${{ inputs.load_version }} - name: Checkout to MCT Quantizers requested tag for loading test models @@ -63,5 +54,6 @@ jobs: export PYTHONPATH="$PWD:${PYTHONPATH}" echo "Updated PYTHONPATH: $PYTHONPATH" cd .. + python -c "import mct_quantizers; print(mct_quantizers.__version__)" python tests/compatibility_tests/torch_comp_tests/compatibility_weights_load_model_test_suite.py ${{ inputs.load_version }} python tests/compatibility_tests/torch_comp_tests/compatibility_activation_load_model_test_suite.py ${{ inputs.load_version }} diff --git a/.github/workflows/run_comp_test_tf214_v13.yml b/.github/workflows/run_comp_test_tf214_v13.yml deleted file mode 100644 index e523e68..0000000 --- a/.github/workflows/run_comp_test_tf214_v13.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Backward Compatibility Test - Tensorflow 2.14 MCTQ v1.3.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-comp-tensorflow-2_14-v1_3: - uses: ./.github/workflows/compatibility_keras_tests.yml - with: - save_version: "v1.3.0" - python_version: "3.10" - tf_version: "2.14.*" diff --git a/.github/workflows/run_comp_test_tf214_v14.yml b/.github/workflows/run_comp_test_tf214_v14.yml deleted file mode 100644 index 2817b92..0000000 --- a/.github/workflows/run_comp_test_tf214_v14.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Backward Compatibility Test - Tensorflow 2.14 MCTQ v1.4.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-comp-tensorflow-2_14-v1_4: - uses: ./.github/workflows/compatibility_keras_tests.yml - with: - save_version: "v1.4.0" - python_version: "3.10" - tf_version: "2.14.*" diff --git a/.github/workflows/run_comp_test_tf215_v13.yml b/.github/workflows/run_comp_test_tf215_v13.yml deleted file mode 100644 index 021e810..0000000 --- a/.github/workflows/run_comp_test_tf215_v13.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Backward Compatibility Test - Tensorflow 2.15 MCTQ v1.3.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-comp-tensorflow-2_15-v1_3: - uses: ./.github/workflows/compatibility_keras_tests.yml - with: - save_version: "v1.3.0" - python_version: "3.10" - tf_version: "2.15.*" diff --git a/.github/workflows/run_comp_test_tf215_v14.yml b/.github/workflows/run_comp_test_tf215_v14.yml deleted file mode 100644 index 156b6a7..0000000 --- a/.github/workflows/run_comp_test_tf215_v14.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Backward Compatibility Test - Tensorflow 2.15 MCTQ v1.4.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-comp-tensorflow-2_15-v1_4: - uses: ./.github/workflows/compatibility_keras_tests.yml - with: - save_version: "v1.4.0" - python_version: "3.10" - tf_version: "2.15.*" diff --git a/.github/workflows/run_comp_test_torch23_v14.yml b/.github/workflows/run_comp_test_torch23_v14.yml deleted file mode 100644 index 0d170f0..0000000 --- a/.github/workflows/run_comp_test_torch23_v14.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Backward Compatibility Test - Pytorch 2.3 MCTQ v1.4.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-comp-torch-2_3-v1_4: - uses: ./.github/workflows/compatibility_torch_tests.yml - with: - save_version: "v1.4.0" - python_version: "3.10" - torch_version: "2.3.*" diff --git a/.github/workflows/run_comp_test_torch24_v14.yml b/.github/workflows/run_comp_test_torch24_v14.yml deleted file mode 100644 index 1539fc9..0000000 --- a/.github/workflows/run_comp_test_torch24_v14.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Backward Compatibility Test - Pytorch 2.4 MCTQ v1.4.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-comp-torch-2_4-v1_4: - uses: ./.github/workflows/compatibility_torch_tests.yml - with: - save_version: "v1.4.0" - python_version: "3.10" - torch_version: "2.4.*" diff --git a/.github/workflows/run_comp_test_torch25_v14.yml b/.github/workflows/run_comp_test_torch25_v14.yml deleted file mode 100644 index b1e9f5a..0000000 --- a/.github/workflows/run_comp_test_torch25_v14.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Backward Compatibility Test - Pytorch 2.5 MCTQ v1.4.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-comp-torch-2_5-v1_4: - uses: ./.github/workflows/compatibility_torch_tests.yml - with: - save_version: "v1.4.0" - python_version: "3.10" - torch_version: "2.5.*" diff --git a/.github/workflows/run_comp_test_torch22_v14.yml b/.github/workflows/run_comp_test_torch26_v152.yml similarity index 62% rename from .github/workflows/run_comp_test_torch22_v14.yml rename to .github/workflows/run_comp_test_torch26_v152.yml index 173b496..dc7618a 100644 --- a/.github/workflows/run_comp_test_torch22_v14.yml +++ b/.github/workflows/run_comp_test_torch26_v152.yml @@ -1,4 +1,4 @@ -name: Run Backward Compatibility Test - Pytorch 2.2 MCTQ v1.4.0 +name: Run Backward Compatibility Test - Pytorch 2.6 MCTQ v1.5.2 on: workflow_dispatch: # Allow manual triggers schedule: @@ -10,9 +10,9 @@ concurrency: cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: - run-comp-torch-2_2-v1_4: + run-comp-torch-2_6-v1_5_2: uses: ./.github/workflows/compatibility_torch_tests.yml with: - save_version: "v1.4.0" - python_version: "3.10" - torch_version: "2.2.*" + save_version: "v1.5.2" + python_version: "3.12" + torch_version: "2.6.*" diff --git a/.github/workflows/run_forward_comp_test_tf214_v14.yml b/.github/workflows/run_forward_comp_test_tf214_v14.yml deleted file mode 100644 index 88f8e33..0000000 --- a/.github/workflows/run_forward_comp_test_tf214_v14.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Forward Compatibility Test - Tensorflow 2.14 MCTQ v1.4.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-forward-comp-tensorflow-2_14-v1_4: - uses: ./.github/workflows/forward_compatibility_keras_tests.yml - with: - load_version: "v1.4.0" - python_version: "3.10" - tf_version: "2.14.*" diff --git a/.github/workflows/run_forward_comp_test_tf215_v14.yml b/.github/workflows/run_forward_comp_test_tf215_v14.yml deleted file mode 100644 index 933be4a..0000000 --- a/.github/workflows/run_forward_comp_test_tf215_v14.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Forward Compatibility Test - Tensorflow 2.15 MCTQ v1.4.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-forward-comp-tensorflow-2_15-v1_4: - uses: ./.github/workflows/forward_compatibility_keras_tests.yml - with: - load_version: "v1.4.0" - python_version: "3.10" - tf_version: "2.15.*" diff --git a/.github/workflows/run_forward_comp_test_torch23_v14.yml b/.github/workflows/run_forward_comp_test_torch23_v14.yml deleted file mode 100644 index 79e23bd..0000000 --- a/.github/workflows/run_forward_comp_test_torch23_v14.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Forward Compatibility Test - Pytorch 2.3 MCTQ v1.4.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-comp-torch-2_3-v1_4: - uses: ./.github/workflows/forward_compatibility_torch_tests.yml - with: - load_version: "v1.4.0" - python_version: "3.10" - torch_version: "2.3.*" diff --git a/.github/workflows/run_forward_comp_test_torch24_v14.yml b/.github/workflows/run_forward_comp_test_torch24_v14.yml deleted file mode 100644 index 9bd19ad..0000000 --- a/.github/workflows/run_forward_comp_test_torch24_v14.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Forward Compatibility Test - Pytorch 2.4 MCTQ v1.4.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-comp-torch-2_4-v1_4: - uses: ./.github/workflows/forward_compatibility_torch_tests.yml - with: - load_version: "v1.4.0" - python_version: "3.10" - torch_version: "2.4.*" diff --git a/.github/workflows/run_forward_comp_test_torch25_v14.yml b/.github/workflows/run_forward_comp_test_torch25_v14.yml deleted file mode 100644 index 7d63220..0000000 --- a/.github/workflows/run_forward_comp_test_torch25_v14.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Run Forward Compatibility Test - Pytorch 2.5 MCTQ v1.4.0 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-comp-torch-2_5-v1_4: - uses: ./.github/workflows/forward_compatibility_torch_tests.yml - with: - load_version: "v1.4.0" - python_version: "3.10" - torch_version: "2.5.*" diff --git a/.github/workflows/run_forward_comp_test_torch22_v14.yml b/.github/workflows/run_forward_comp_test_torch26_v152.yml similarity index 63% rename from .github/workflows/run_forward_comp_test_torch22_v14.yml rename to .github/workflows/run_forward_comp_test_torch26_v152.yml index 55aa5b8..2bdf8cc 100644 --- a/.github/workflows/run_forward_comp_test_torch22_v14.yml +++ b/.github/workflows/run_forward_comp_test_torch26_v152.yml @@ -1,4 +1,4 @@ -name: Run Forward Compatibility Test - Pytorch 2.2 MCTQ v1.4.0 +name: Run Forward Compatibility Test - Pytorch 2.6 MCTQ v1.5.2 on: workflow_dispatch: # Allow manual triggers schedule: @@ -10,9 +10,9 @@ concurrency: cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: - run-comp-torch-2_2-v1_4: + run-comp-torch-2_6-v1_5_2: uses: ./.github/workflows/forward_compatibility_torch_tests.yml with: - load_version: "v1.4.0" - python_version: "3.10" - torch_version: "2.2.*" + load_version: "v1.5.2" + python_version: "3.12" + torch_version: "2.6.*" diff --git a/.github/workflows/run_pytorch_tests.yml b/.github/workflows/run_pytorch_tests.yml index f470302..bd2f242 100644 --- a/.github/workflows/run_pytorch_tests.yml +++ b/.github/workflows/run_pytorch_tests.yml @@ -15,13 +15,7 @@ jobs: - name: Install Python 3 uses: actions/setup-python@v5 with: - python-version: 3.10.* - - name: Modify requirements for Torch 2.2 - if: startsWith(inputs.torch-version, '2.2') - run: | - grep -v 'numpy' requirements.txt > temp_requirements.txt - echo "numpy<2" >> temp_requirements.txt - mv temp_requirements.txt requirements.txt + python-version: 3.12.* - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/run_tests_suite_pip.yml b/.github/workflows/run_tests_suite_pip.yml index 4ac86b8..1e946ad 100644 --- a/.github/workflows/run_tests_suite_pip.yml +++ b/.github/workflows/run_tests_suite_pip.yml @@ -5,7 +5,7 @@ on: mct_quantizers_version: description: 'MCT Quantizers version' required: true - default: 'v1.1.0' + default: 'v1.6.0' python_version: description: 'Python version' required: false @@ -48,14 +48,14 @@ jobs: rm -rf mct_quantizers - name: Install TF run: | - pip install tensorflow==2.14.* + pip install tensorflow==2.15.* - name: Run TF Tests run: | python -m unittest discover tests/keras_tests --verbose - name: Prepare for Torch run: | pip uninstall tensorflow -y - pip install torch==2.0.* torchvision onnx onnxruntime "onnxruntime-extensions<0.14" + pip install torch==2.6.* torchvision "onnx<1.18" "onnxruntime<1.22" "onnxruntime-extensions<0.14" - name: Run Torch Tests run: | python -m unittest discover tests/pytorch_tests --verbose diff --git a/.github/workflows/run_tests_tf212.yml b/.github/workflows/run_tests_tf212.yml deleted file mode 100644 index 19a3292..0000000 --- a/.github/workflows/run_tests_tf212.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Run Tests - Tensorflow 2.12 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-tensorflow-2_12: - uses: ./.github/workflows/run_keras_tests.yml - with: - tf-version: "2.12.*" diff --git a/.github/workflows/run_tests_tf213.yml b/.github/workflows/run_tests_tf213.yml deleted file mode 100644 index c9e73f1..0000000 --- a/.github/workflows/run_tests_tf213.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Run Tests - Tensorflow 2.13 -on: - workflow_dispatch: # Allow manual triggers - schedule: - - cron: 0 0 * * * - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} - -jobs: - run-tensorflow-2_13: - uses: ./.github/workflows/run_keras_tests.yml - with: - tf-version: "2.13.*" diff --git a/.github/workflows/run_tests_torch2_2.yml b/.github/workflows/run_tests_torch2_6.yml similarity index 78% rename from .github/workflows/run_tests_torch2_2.yml rename to .github/workflows/run_tests_torch2_6.yml index 23b16f8..17b6db7 100644 --- a/.github/workflows/run_tests_torch2_2.yml +++ b/.github/workflows/run_tests_torch2_6.yml @@ -1,4 +1,4 @@ -name: Run Tests - PyTorch 2.2 +name: Run Tests - PyTorch 2.6 on: workflow_dispatch: # Allow manual triggers schedule: @@ -10,7 +10,7 @@ concurrency: cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: - run-pytorch-2_2: + run-pytorch-2_6: uses: ./.github/workflows/run_pytorch_tests.yml with: - torch-version: "2.2.*" + torch-version: "2.6.*" diff --git a/.github/workflows/run_various_python_versions_tf.yml b/.github/workflows/run_various_python_versions_tf.yml new file mode 100644 index 0000000..b012734 --- /dev/null +++ b/.github/workflows/run_various_python_versions_tf.yml @@ -0,0 +1,32 @@ +name: Test Python Version(TensorFlow) + +on: + workflow_dispatch: # Allow manual triggers + schedule: + - cron: 0 0 * * * + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 10 + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11"] + steps: + - uses: actions/checkout@v4 + - name: Install Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install tensorflow==2.15.* + - name: Run unittests + run: python -m unittest discover -s tests/keras_tests -v diff --git a/.github/workflows/run_various_python_versions.yml b/.github/workflows/run_various_python_versions_torch.yml similarity index 82% rename from .github/workflows/run_various_python_versions.yml rename to .github/workflows/run_various_python_versions_torch.yml index f14877c..0a61977 100644 --- a/.github/workflows/run_various_python_versions.yml +++ b/.github/workflows/run_various_python_versions_torch.yml @@ -1,4 +1,4 @@ -name: Test Python Version +name: Test Python Version(PyTorch) on: workflow_dispatch: # Allow manual triggers @@ -16,7 +16,7 @@ jobs: timeout-minutes: 10 strategy: matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Install Python ${{ matrix.python-version }} @@ -27,7 +27,6 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install tensorflow==2.15.* pip install torch==2.6.* "onnx<1.18" "onnxruntime<1.22" "onnxruntime-extensions<0.14" - name: Run unittests - run: python -m unittest discover -s tests -v + run: python -m unittest discover -s tests/pytorch_tests -v