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:
commit
56a61ee520
1 changed files with 32 additions and 0 deletions
32
.github/workflows/daemon-checks.yml
vendored
Normal file
32
.github/workflows/daemon-checks.yml
vendored
Normal 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
|
Loading…
Add table
Reference in a new issue