From a33c8046f515cfa256a1fdda05b4356d901e2f90 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Wed, 30 Oct 2019 15:44:57 -0700 Subject: [PATCH] changes to support running mock tests --- .github/workflows/daemon-checks.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/daemon-checks.yml b/.github/workflows/daemon-checks.yml index 023f5165..21dd95dc 100644 --- a/.github/workflows/daemon-checks.yml +++ b/.github/workflows/daemon-checks.yml @@ -17,6 +17,8 @@ jobs: pip install pipenv cd daemon cp setup.py.in setup.py + cp core/constants.py.in core/constants.py + sed -i 's/True/False/g' core/constants.py pipenv install --dev - name: isort run: | @@ -30,3 +32,11 @@ jobs: run: | cd daemon pipenv run flake8 + - name: grpc + run: | + cd daemon/proto + pipenv run python -m grpc_tools.protoc -I . --python_out=.. --grpc_python_out=.. core/api/grpc/core.proto + - name: test + run: | + cd daemon + pipenv run test --mock