File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 23
23
poetry config virtualenvs.create false
24
24
make install-dev
25
25
- name : Lint
26
- run : make lint
26
+ run : make lint-services
27
27
- name : Test
28
- run : make test
28
+ run : make test-services
Original file line number Diff line number Diff line change @@ -12,20 +12,28 @@ install-dev:
12
12
# install core. This needs to be done last or it will get overriden by the dependency installation of the services
13
13
poetry install -C core --no-root; pip install -e core
14
14
15
- test :
15
+ test-services :
16
16
# test core
17
17
cd core && poetry install --with dev && pytest
18
18
# test services
19
19
@for f in $(shell ls ${SERVICES_DIR}) ; do set -e; cd ${SERVICES_DIR} /$$ {f}; poetry install --with dev; sh -c ' pytest || ([ $$? = 5 ] && exit 0 || exit $$?)' ; cd ../..; done
20
20
21
- lint :
21
+ lint-services :
22
22
# lint core
23
23
cd core && poetry install --no-root --only dev && flake8 .
24
24
# lint examples. Use configuration from core
25
25
flake8 --toml-config core/pyproject.toml --black-config core/pyproject.toml examples;
26
26
# lint services
27
27
@for f in $(shell ls ${SERVICES_DIR}) ; do set -e; cd ${SERVICES_DIR} /$$ {f}; poetry install --no-root --only dev; flake8 . ; cd ../..; done
28
28
29
+ test :
30
+ echo " Testing service ${service} "
31
+ cd ${SERVICES_DIR} /${service} ; poetry install --with dev; sh -c ' pytest || ([ $$? = 5 ] && exit 0 || exit $$?)' ; cd ../..;
32
+
33
+ lint :
34
+ echo " Linting service ${service} "
35
+ cd ${SERVICES_DIR} /${service} ; poetry install --no-root --only dev; flake8 . ; cd ../..;
36
+
29
37
update-dependencies :
30
38
# lock core
31
39
cd core && poetry lock
You can’t perform that action at this time.
0 commit comments