Files
M. Anthony Aiello 0d85f02ff1 Clean Up CI (#56)
Remove Travis config, since it's no longer needed.

Improve the naming in the Checks workflow and tweak the formatting of the file. Also add python 3.7 to the checks. This matters because the anod build will use python 3.7
2020-07-01 08:46:22 -04:00

32 lines
878 B
YAML

on: [push, pull_request]
name: Checks
jobs:
build:
name: All Checks
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8]
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black flake8 flake8-bugbear flake8-builtins flake8-comprehensions flake8-docstrings flake8-rst-docstrings mypy
- name: Run black
run: black -q --diff --check anod install lib
- name: Run flake8
run: flake8 anod install lib
- name: Run mypy
run: mypy --config-file .mypy.ini anod install lib