pre-commit: bump repositories #228
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: checks | |
on: [push, pull_request] | |
jobs: | |
mypy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: [3.7, 3.8, 3.9] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
- name: Install mypy | |
run: | | |
pip install --upgrade pip | |
pip install mypy | |
mypy --version | |
- name: Install dependencies | |
run: pip install importlib_metadata packaging | |
- name: Run mypy | |
run: mypy --python-version ${{ matrix.python }} -p dbus_objects | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
- name: Install flake8 | |
run: | | |
pip install --upgrade pip | |
pip install flake8 | |
flake8 --version | |
- name: Run flake8 | |
run: flake8 --show-source --statistics dbus_objects | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
- name: Install isort | |
run: | | |
pip install --upgrade pip | |
pip install isort | |
isort --version | |
- name: Run isort | |
run: isort --check-only --diff --recursive dbus_objects |