Bump homeassistant from 2022.11.0 to 2023.12.3 #1654
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test (pytest) | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements_test.txt | |
- name: Register Python problem matcher | |
run: | | |
echo "::add-matcher::.github/workflows/matchers/python.json" | |
- name: Install Pytest Annotation plugin | |
run: | | |
# Ideally this should be part of our dependencies | |
# However this plugin is fairly new and doesn't run correctly | |
# on a non-GitHub environment. | |
pip install pytest-github-actions-annotate-failures | |
- name: Test with pytest | |
run: | | |
pytest \ | |
--cov custom_components/tahoma \ | |
--cov-report=xml --cov-report=html \ | |
-o console_output_style=count \ | |
-p no:sugar \ | |
tests | |
- name: Upload coverage artifact | |
uses: actions/[email protected] | |
with: | |
name: coverage-${{ matrix.python-version }} | |
path: htmlcov |