@@ -7,46 +7,24 @@ IFS=$'\n\t'
77
88install () {
99 bash ci/helpers/ensure_python_pip.bash
10+ make devenv
11+ # shellcheck source=/dev/null
12+ source .venv/bin/activate
1013 pushd services/director-v2
11- pip3 install -r requirements/ci.txt
14+ make install-ci
1215 popd
13- pip list --verbose
16+ .venv/bin/ pip list --verbose
1417}
1518
1619test () {
20+ # shellcheck source=/dev/null
21+ source .venv/bin/activate
1722 # tests without DB can be safely run in parallel
18- pytest \
19- --asyncio-mode=auto \
20- --color=yes \
21- --cov-append \
22- --cov-config=.coveragerc \
23- --cov-report=term-missing \
24- --cov-report=xml \
25- --cov=simcore_service_director_v2 \
26- --durations=10 \
27- --ignore-glob=** /with_dbs/** \
28- --log-date-format=" %Y-%m-%d %H:%M:%S" \
29- --log-format=" %(asctime)s %(levelname)s %(message)s" \
30- --numprocesses=auto \
31- --verbose \
32- -m " not heavy_load" \
33- services/director-v2/tests/unit
34-
23+ pushd services/director-v2
24+ make test-ci-unit pytest-parameters=" --numprocesses=auto --ignore-glob=**/with_dbs/**"
3525 # these tests cannot be run in parallel
36- pytest \
37- --asyncio-mode=auto \
38- --color=yes \
39- --cov-append \
40- --cov-config=.coveragerc \
41- --cov-report=term-missing \
42- --cov-report=xml \
43- --cov=simcore_service_director_v2 \
44- --durations=10 \
45- --log-date-format=" %Y-%m-%d %H:%M:%S" \
46- --log-format=" %(asctime)s %(levelname)s %(message)s" \
47- --verbose \
48- -m " not heavy_load" \
49- services/director-v2/tests/unit/with_dbs
26+ make test-ci-unit test-subfolder=with_dbs
27+ popd
5028}
5129
5230# Check if the function exists (bash specific)
0 commit comments