ci: changes to switch to poetry

This commit is contained in:
Blake Harnden 2020-07-11 16:17:50 -07:00
parent 4d35e8f968
commit ec45d7198b

View file

@ -11,32 +11,32 @@ jobs:
uses: actions/setup-python@v1 uses: actions/setup-python@v1
with: with:
python-version: 3.6 python-version: 3.6
- name: Install pipenv - name: install poetry
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pipenv pip install poetry
cd daemon cd daemon
cp setup.py.in setup.py cp setup.py.in setup.py
cp core/constants.py.in core/constants.py cp core/constants.py.in core/constants.py
sed -i 's/required=True/required=False/g' core/emulator/coreemu.py sed -i 's/required=True/required=False/g' core/emulator/coreemu.py
pipenv sync --dev poetry install
- name: isort - name: isort
run: | run: |
cd daemon cd daemon
pipenv run isort -c -df poetry run isort -c -df
- name: black - name: black
run: | run: |
cd daemon cd daemon
pipenv run black --check --exclude ".+_pb2.*.py|doc|build|utm\.py|setup\.py" . poetry run black --check --exclude ".+_pb2.*.py|doc|build|utm\.py|setup\.py" .
- name: flake8 - name: flake8
run: | run: |
cd daemon cd daemon
pipenv run flake8 poetry run flake8
- name: grpc - name: grpc
run: | run: |
cd daemon/proto cd daemon/proto
pipenv run python -m grpc_tools.protoc -I . --python_out=.. --grpc_python_out=.. core/api/grpc/*.proto poetry run python -m grpc_tools.protoc -I . --python_out=.. --grpc_python_out=.. core/api/grpc/*.proto
- name: test - name: test
run: | run: |
cd daemon cd daemon
pipenv run test --mock poetry run pytest --mock tests