Merge branch 'master' into graph_plots #19
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: Code style checks | |
on: [push] | |
jobs: | |
black: | |
name: "Ensure black compliance" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install code style checking tools | |
run: python -m pip install black | |
- name: Run black | |
run: black --check . | |
interrogate: | |
name: "Ensure docstring coverage" | |
runs-on: "ubuntu-18.04" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install code style checking tools | |
run: python -m pip install interrogate | |
- name: Run interrogate | |
run: interrogate graphein | |
isort: | |
name: "Ensure imports are correctly sorted" | |
runs-on: "ubuntu-18.04" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install code style checking tools | |
run: python -m pip install isort | |
- name: Run isort | |
run: isort . --check-only |