Run checks on python 3.12 (#922)

This commit is contained in:
J. Nick Koston 2024-08-11 06:50:33 -05:00 committed by GitHub
parent 1b8544385c
commit 735a083605
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,16 +72,16 @@ jobs:
- run: flake8 aioesphomeapi
name: Lint with flake8
if: ${{ matrix.python-version == '3.11' && matrix.extension == 'skip_cython' }}
if: ${{ matrix.python-version == '3.12' && matrix.extension == 'skip_cython' }}
- run: pylint aioesphomeapi
name: Lint with pylint
if: ${{ matrix.python-version == '3.11' && matrix.extension == 'skip_cython' }}
if: ${{ matrix.python-version == '3.12' && matrix.extension == 'skip_cython' }}
- run: black --check --diff --color aioesphomeapi tests
name: Check formatting with black
if: ${{ matrix.python-version == '3.11' && matrix.extension == 'skip_cython' }}
if: ${{ matrix.python-version == '3.12' && matrix.extension == 'skip_cython' }}
- run: mypy aioesphomeapi
name: Check typing with mypy
if: ${{ matrix.python-version == '3.11' && matrix.extension == 'skip_cython' }}
if: ${{ matrix.python-version == '3.12' && matrix.extension == 'skip_cython' }}
- run: pytest -vv --cov=aioesphomeapi --cov-report=xml --tb=native tests
name: Run tests with pytest
- name: Upload coverage to Codecov
@ -98,4 +98,4 @@ jobs:
exit 1
fi
name: Check protobuf files match
if: ${{ matrix.python-version == '3.11' && matrix.extension == 'skip_cython' }}
if: ${{ matrix.python-version == '3.12' && matrix.extension == 'skip_cython' }}