Skip to content

Commit 948e05b

Browse files
author
yarden-sony
committed
torch tests before tf tests
1 parent cbded3c commit 948e05b

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/run_tests_suite_coverage.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@ jobs:
4242
- name: Run common tests (pytest)
4343
run: coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" pytest tests_pytest/common_tests
4444

45-
- name: Set up TensorFlow environment
46-
run: |
47-
python -m venv tf_env
48-
source tf_env/bin/activate
49-
python -m pip install --upgrade pip
50-
pip install -r requirements.txt tensorflow==2.13.* sony-custom-layers coverage pytest pytest-mock
51-
52-
- name: Run TensorFlow tests (unittest)
53-
run: |
54-
source tf_env/bin/activate
55-
coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" unittest discover tests/keras_tests -v
56-
57-
- name: Run TensorFlow tests (pytest)
58-
run: |
59-
source tf_env/bin/activate
60-
coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" pytest tests_pytest/keras_tests
61-
6245
- name: Set up PyTorch environment
6346
run: |
6447
python -m venv torch_env
@@ -77,6 +60,23 @@ jobs:
7760
source torch_env/bin/activate
7861
coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" pytest tests_pytest/pytorch_tests
7962
63+
- name: Set up TensorFlow environment
64+
run: |
65+
python -m venv tf_env
66+
source tf_env/bin/activate
67+
python -m pip install --upgrade pip
68+
pip install -r requirements.txt tensorflow==2.13.* sony-custom-layers coverage pytest pytest-mock
69+
70+
- name: Run TensorFlow tests (unittest)
71+
run: |
72+
source tf_env/bin/activate
73+
coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" unittest discover tests/keras_tests -v
74+
75+
- name: Run TensorFlow tests (pytest)
76+
run: |
77+
source tf_env/bin/activate
78+
coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" pytest tests_pytest/keras_tests
79+
8080
- name: Combine Multiple Coverage Files
8181
run: coverage combine
8282

0 commit comments

Comments
 (0)