fix: some minor fixes
Some checks failed
Tests / test (3.13) (push) Failing after 26s
Tests / lint (push) Failing after 16s
Tests / hacs (push) Failing after 30s

Signed-off-by: Rafal Zielinski <sq4ind@gmail.com>
This commit is contained in:
2025-10-02 16:09:10 +01:00
parent bd6a73fa15
commit e23d60d895
10 changed files with 185 additions and 22 deletions

View File

@@ -15,6 +15,17 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'requirements_test.txt'
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-release-${{ hashFiles('requirements_test.txt') }}
restore-keys: |
${{ runner.os }}-pip-release-
${{ runner.os }}-pip-
- name: Install dependencies
run: |
@@ -23,7 +34,7 @@ jobs:
- name: Run tests
run: |
python -m pytest tests/ -v
python -m pytest tests/ -v --asyncio-mode=auto
- name: Update version in manifest
run: |

View File

@@ -21,6 +21,17 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements_test.txt'
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements_test.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
- name: Install dependencies
run: |
@@ -29,7 +40,7 @@ jobs:
- name: Run pytest
run: |
python -m pytest tests/ -v --tb=short
python -m pytest tests/ -v --tb=short --asyncio-mode=auto
- name: Validate manifest
run: |
@@ -45,6 +56,16 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-lint-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-lint-
${{ runner.os }}-pip-
- name: Install dependencies
run: |
@@ -65,7 +86,7 @@ jobs:
- name: Run mypy
run: |
mypy custom_components/
mypy custom_components/ --ignore-missing-imports
continue-on-error: true
hacs: