diff --git a/.github/workflows/run_keras_tests.yml b/.github/workflows/run_keras_tests.yml index 045f8fc40..205e1a688 100644 --- a/.github/workflows/run_keras_tests.yml +++ b/.github/workflows/run_keras_tests.yml @@ -24,11 +24,15 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt pip install tensorflow==${{ inputs.tf-version }} sony-custom-layers + pip install pytest - name: Run unittests # Some tests are sensitive to memory because we use tf gradients on a multi-thread/process # CPU environment (https://github.com/tensorflow/tensorflow/issues/41718). # For this reason, if we run them in such an environment, we need to run them first non-parallel separately. run: | python -m unittest discover tests/keras_tests -v + - name: Run pytest + run: | + pytest tests_pytest/keras diff --git a/.github/workflows/run_pytorch_tests.yml b/.github/workflows/run_pytorch_tests.yml index 28b3312c2..49a8e763b 100644 --- a/.github/workflows/run_pytorch_tests.yml +++ b/.github/workflows/run_pytorch_tests.yml @@ -28,6 +28,8 @@ jobs: - name: Run unittests run: | python -m unittest discover tests/pytorch_tests -v + - name: Run pytest + run: | pytest tests_pytest/pytorch diff --git a/tests_pytest/keras/core/__init__.py b/tests_pytest/keras/core/__init__.py new file mode 100644 index 000000000..e11a7cc60 --- /dev/null +++ b/tests_pytest/keras/core/__init__.py @@ -0,0 +1,14 @@ +# Copyright 2024 Sony Semiconductor Israel, Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== diff --git a/tests_pytest/pytorch/core/__init__.py b/tests_pytest/pytorch/core/__init__.py new file mode 100644 index 000000000..e11a7cc60 --- /dev/null +++ b/tests_pytest/pytorch/core/__init__.py @@ -0,0 +1,14 @@ +# Copyright 2024 Sony Semiconductor Israel, Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ==============================================================================