fix: some minor fixes
Signed-off-by: Rafal Zielinski <sq4ind@gmail.com>
This commit is contained in:
@@ -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: |
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user