Skip to content

Merge pull request #184 from natekspencer/dependabot/pip/protobuf-4.25.4 #386

Merge pull request #184 from natekspencer/dependabot/pip/protobuf-4.25.4

Merge pull request #184 from natekspencer/dependabot/pip/protobuf-4.25.4 #386

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.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install dependencies
run: poetry install
- name: Run linting
run: |
poetry run ruff check
poetry run ruff format --check
- name: Run mypy
run: poetry run mypy vivintpy tests
- name: Test with pytest
run: poetry run pytest --asyncio-mode=auto