Add mypy check GitHub Actions workflow

This commit is contained in:
Quantum 2021-04-25 04:14:17 -04:00
parent 813878b969
commit 8f637b284c
2 changed files with 33 additions and 18 deletions

33
.github/workflows/check.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: check
on: [push, pull_request]
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install flake8
run: |
pip install flake8 flake8-import-order flake8-commas flake8-logging-format
- name: Run flake8
run: |
flake8 --version
flake8
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install mypy
run: |
pip install mypy
- name: Run mypy
run: |
mypy --version
mypy nginx_krbauth.py

View file

@ -1,18 +0,0 @@
name: flake8
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install flake8
run: |
pip install flake8 flake8-import-order flake8-commas flake8-logging-format
- name: Run flake8
run: |
flake8 --version
flake8