Merge pull request #282 from coreemu/gh-actions

Add github action for running pre-commit checks as a double check before merging, isolated to daemon code for now
This commit is contained in:
bharnden 2019-09-19 08:52:25 -07:00 committed by GitHub
commit 56a61ee520
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

32
.github/workflows/daemon-checks.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Daemon Checks
on: [push]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv
cd daemon
cp setup.py.in setup.py
pipenv install --dev
- name: isort
run: |
cd daemon
pipenv run isort -c
- name: black
run: |
cd daemon
pipenv run black --check --exclude ".+_pb2.*.py|doc|build|utm\.py|setup\.py" .
- name: flake8
run: |
cd daemon
pipenv run flake8