changes to support running mock tests
This commit is contained in:
parent
79dfbaa3ec
commit
a33c8046f5
1 changed files with 10 additions and 0 deletions
10
.github/workflows/daemon-checks.yml
vendored
10
.github/workflows/daemon-checks.yml
vendored
|
@ -17,6 +17,8 @@ jobs:
|
||||||
pip install pipenv
|
pip install pipenv
|
||||||
cd daemon
|
cd daemon
|
||||||
cp setup.py.in setup.py
|
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
|
pipenv install --dev
|
||||||
- name: isort
|
- name: isort
|
||||||
run: |
|
run: |
|
||||||
|
@ -30,3 +32,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd daemon
|
cd daemon
|
||||||
pipenv run flake8
|
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
|
||||||
|
|
Loading…
Reference in a new issue