docker: added missing packages for centos to avoid issues with missin… #1391
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daemon Checks | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: install poetry | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
cd daemon | |
cp core/constants.py.in core/constants.py | |
sed -i 's/required=True/required=False/g' core/emulator/coreemu.py | |
poetry install | |
- name: isort | |
run: | | |
cd daemon | |
poetry run isort -c -df | |
- name: black | |
run: | | |
cd daemon | |
poetry run black --check . | |
- name: flake8 | |
run: | | |
cd daemon | |
poetry run flake8 | |
- name: grpc | |
run: | | |
cd daemon/proto | |
poetry run python -m grpc_tools.protoc -I . --python_out=.. --grpc_python_out=.. core/api/grpc/*.proto | |
- name: test | |
run: | | |
cd daemon | |
poetry run pytest --mock tests |