Merge pull request #310 from coreemu/actions-test
Mocked Unit Test Action
This commit is contained in:
commit
19300c7564
2 changed files with 11 additions and 1 deletions
10
.github/workflows/daemon-checks.yml
vendored
10
.github/workflows/daemon-checks.yml
vendored
|
@ -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
|
||||
|
|
|
@ -123,7 +123,7 @@ class CoreHandler(socketserver.BaseRequestHandler):
|
|||
for thread in self.handler_threads:
|
||||
logging.info("waiting for thread: %s", thread.getName())
|
||||
thread.join(timeout)
|
||||
if thread.isAlive():
|
||||
if thread.is_alive():
|
||||
logging.warning(
|
||||
"joining %s failed: still alive after %s sec",
|
||||
thread.getName(),
|
||||
|
|
Loading…
Reference in a new issue