Skip to content

feat(test): Always test against the system version of python3 (#207) #232

feat(test): Always test against the system version of python3 (#207)

feat(test): Always test against the system version of python3 (#207) #232

name: "PEP8 and mypy"
on:
push:
branches: ["master", "feat/workflows"]
pull_request:
branches: ["master", "feat/workflows"]
schedule:
- cron: '0 0 * * */10'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Python 3.7 syntax check
run: python -m py_compile src/wsdd.py
- name: Lint with flake8
run: |
pip install flake8
flake8 --count --show-source --statistics src
- name: mypy type check
run: |
pip install mypy==0.910
mypy --python-version=3.7 src/wsdd.py
mypy --python-version=3.8 src/wsdd.py
mypy --python-version=3.9 src/wsdd.py
mypy --python-version=3.10 src/wsdd.py
mypy --python-version=3.11 src/wsdd.py
mypy --python-version=3.12 src/wsdd.py