4444
4545jobs :
4646 run_tests :
47- name : Run tests with ${{ matrix.os }}, Python ${{ matrix.py_v}}, RedisAI ${{ matrix.rai }}
47+ name : Run tests ${{ matrix.subset }} with ${{ matrix.os }}, Python ${{ matrix.py_v}}, RedisAI ${{ matrix.rai }}
4848 runs-on : ${{ matrix.os }}
4949 strategy :
5050 fail-fast : false
5151 matrix :
52+ subset : [backends, slow_tests, group_a, group_b]
5253 os : [macos-12, ubuntu-20.04] # Operating systems
5354 compiler : [8] # GNU compiler version
5455 rai : [1.2.7] # Redis AI versions
@@ -121,10 +122,19 @@ jobs:
121122 - name : Run Pylint
122123 run : make check-lint
123124
125+ # Run pytest (backends subdirectory)
124126 - name : Run Pytest
127+ if : (matrix.subset == 'backends')
125128 run : |
126129 echo "SMARTSIM_LOG_LEVEL=debug" >> $GITHUB_ENV
127- py.test -s --import-mode=importlib -o log_cli=true --cov=$(smart site) --cov-report=xml --cov-config=./tests/test_configs/cov/local_cov.cfg --ignore=tests/full_wlm/ ./tests/
130+ py.test -s --import-mode=importlib -o log_cli=true --cov=$(smart site) --cov-report=xml --cov-config=./tests/test_configs/cov/local_cov.cfg --ignore=tests/full_wlm/ ./tests/backends
131+
132+ # Run pytest (test subsets)
133+ - name : Run Pytest
134+ if : " !contains(matrix.subset, 'backends')" # if not running backend tests
135+ run : |
136+ echo "SMARTSIM_LOG_LEVEL=debug" >> $GITHUB_ENV
137+ py.test -s --import-mode=importlib -o log_cli=true --cov=$(smart site) --cov-report=xml --cov-config=./tests/test_configs/cov/local_cov.cfg --ignore=tests/full_wlm/ -m ${{ matrix.subset }} ./tests
128138
129139 # Upload artifacts on failure, ignoring binary files
130140 - name : Upload Artifact
@@ -143,5 +153,5 @@ jobs:
143153 - name : Upload Pytest coverage to Codecov
144154 uses : codecov/codecov-action@v2
145155 with :
146- fail_ci_if_error : true
156+ fail_ci_if_error : false
147157 files : ./coverage.xml
0 commit comments