Release 2.0.0 #104
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: Code style | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Flake8 check | |
uses: julianwachholz/flake8-action@v2 | |
with: | |
checkName: "flake8" | |
path: ./src | |
config: ./src/.flake8 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
mypy: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./src | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7' | |
- name: Install Python dependencies | |
run: | | |
python -m pip install -U pip | |
python -m pip install mypy==0.931 | |
python -m pip install -r requirements.txt | |
- name: MyPy check | |
run: | | |
mypy --namespace-packages --package rekono --install-types --non-interactive | |
mypy --namespace-packages --package tests --install-types --non-interactive |