Skip to content

Commit 16bf769

Browse files
committed
make: Add a check-testing-py to run pytest in gl-testing
1 parent be551dd commit 16bf769

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ build-self: ensure-docker
105105
cd libs/gl-client-py; maturin develop
106106
#mypy examples/python
107107

108-
check-all: check-rs check-self check-py
108+
check-all: check-rs check-self check-py check-testing-py
109109

110110
check-self: ensure-docker build-self
111111
PYTHONPATH=/repo/libs/gl-testing \

libs/gl-testing/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ GENALL += ${GEN_TESTING}
1818

1919
${TESTINGDIR}/gltesting/scheduler_grpc.py: testgrpc
2020

21+
check-testing-py:
22+
#cd ${TESTINGDIR}; mypy gltesting
23+
cd ${TESTINGDIR}; poetry install --with=dev; poetry run pytest tests -n 4 -vvv
24+
2125
testgrpc: ${REPO_ROOT}/libs/proto/glclient/scheduler.proto
2226
python -m grpc_tools.protoc ${TESTPROTOC_OPTS} glclient/scheduler.proto
2327
mv ${TESTINGDIR}/gltesting/glclient/scheduler_grpc.py ${TESTINGDIR}/gltesting/scheduler_grpc.py

0 commit comments

Comments
 (0)