Add T018–T020 to clean three ADB ATO data sets #19
Workflow file for this run
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 quality | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
continue-on-error: true | |
name: black, flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v2 | |
- name: Cache Python packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ubuntu-latest | |
- name: Upgrade pip, wheel | |
run: python -m pip install --upgrade pip wheel | |
- name: Check "black" code style | |
run: | | |
pip install black | |
black --check . | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
flake8 --count --max-complexity=15 --show-source --statistics | |
- name: Sort imports with isort | |
run: | | |
pip install isort | |
isort --check-only . | |
mypy-sphinx: | |
continue-on-error: true | |
name: mypy, sphinx docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v2 | |
- name: Cache Python packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ubuntu-latest | |
- name: Upgrade pip, wheel | |
run: python -m pip install --upgrade pip wheel | |
- name: Install the Python package and dependencies | |
run: pip install .[doc,hist,tests] | |
- name: Check typing with mypy | |
run: | | |
pip install mypy | |
mypy . | |
- name: Build documentation using Sphinx | |
run: make --directory=doc html |