blob: 4524a784744775e31806c0ee89228b53e2ed8b9a [file] [log] [blame]
name: Python Build
on:
workflow_call:
jobs:
flake8:
name: flake8
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.7
- run: python -m pip install flake8
- name: flake8
run: |
flake8 --ignore=E501 --exclude python/protocol python
isort:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.7
- run: python -m pip install isort
- name: isort
run: |
isort --check --diff --skip python/protocol python
black:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.7
- run: python -m pip install black
- name: black
run: |
black --exclude "./python/protocol/" python