Skip to content

Bump mypy from 1.5.1 to 1.8.0 #157

Bump mypy from 1.5.1 to 1.8.0

Bump mypy from 1.5.1 to 1.8.0 #157

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install dependencies
run: poetry install
- name: Run linting
run: |
poetry run isort .
poetry run black . --check
poetry run flake8 pyweatherflowudp tests
poetry run pylint pyweatherflowudp
poetry run pydocstyle pyweatherflowudp tests
- name: Run mypy
run: poetry run mypy pyweatherflowudp
- name: Test with pytest
run: poetry run pytest --timeout=10 --cov=pyweatherflowudp --asyncio-mode=auto