mirror of
https://github.com/quantum5/nginx-krbauth.git
synced 2025-04-24 04:21:57 -04:00
Add mypy check GitHub Actions workflow
This commit is contained in:
parent
813878b969
commit
8f637b284c
33
.github/workflows/check.yml
vendored
Normal file
33
.github/workflows/check.yml
vendored
Normal 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
|
18
.github/workflows/flake8.yml
vendored
18
.github/workflows/flake8.yml
vendored
|
@ -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
|
|
Loading…
Reference in a new issue