|
42 | 42 | - name: Run common tests (pytest) |
43 | 43 | run: coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" pytest tests_pytest/common_tests |
44 | 44 |
|
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 | | -
|
62 | 45 | - name: Set up PyTorch environment |
63 | 46 | run: | |
64 | 47 | python -m venv torch_env |
|
77 | 60 | source torch_env/bin/activate |
78 | 61 | coverage run --parallel-mode -m --omit "*__init__.py" --include "model_compression_toolkit/**/*.py" pytest tests_pytest/pytorch_tests |
79 | 62 |
|
| 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 | +
|
80 | 80 | - name: Combine Multiple Coverage Files |
81 | 81 | run: coverage combine |
82 | 82 |
|
|
0 commit comments