Tianshou/.github/workflows/lint_and_docs.yml
n+e fc251ab0b8
bump to v0.4.3 (#432)
* add makefile
* bump version
* add isort and yapf
* update contributing.md
* update PR template
* spelling check
2021-09-03 05:05:04 +08:00

34 lines
766 B
YAML

name: PEP8, Types and Docs Check
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Upgrade pip
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Install dependencies
run: |
python -m pip install ".[dev]" --upgrade
- name: Lint with flake8
run: |
flake8 . --count --show-source --statistics
- name: Code formatter
run: |
yapf -r -d .
isort --check .
- name: Type check
run: |
mypy
- name: Documentation test
run: |
make check-docstyle
make spelling