Start tracking code coverage (#580)

This commit is contained in:
J. Nick Koston 2023-10-15 12:17:15 -10:00 committed by GitHub
parent 6a6567ac84
commit 054e01dbb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -86,9 +86,11 @@ jobs:
- run: mypy aioesphomeapi
name: Check typing with mypy
if: ${{ matrix.python-version == '3.11' && matrix.extension == 'skip_cython' }}
- run: pytest -vv --tb=native tests
- run: pytest -vv --cov --cov-report=xml --tb=native tests
name: Run tests with pytest
- run: |
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- run: |
docker run \
-v "$PWD":/aioesphomeapi \
ghcr.io/esphome/aioesphomeapi-proto-builder:latest

View File

@ -7,3 +7,4 @@ types-protobuf==4.24.0.2
pytest>=6.2.4,<8
pytest-asyncio>=0.15.1,<1
mock>=4.0.3,<6
pytest-cov>=4.1.0