Skip to content

Commit 6ef2b38

Browse files
authored
Fix CI: deprecated event_loop fixture (#464)
* Use exact Python versions in CI * Remove deprecated `event_loop` fixture * Use `get_event_loop` * Pin pytest-asyncio to a supported version * Revert "Remove deprecated `event_loop` fixture" This reverts commit 8eb65ca.
1 parent 976f604 commit 6ef2b38

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
with:
1313
CODE_FOLDER: zha
1414
CACHE_VERSION: 2
15-
PYTHON_VERSION_DEFAULT: 3.12
15+
PYTHON_VERSION_DEFAULT: "3.12.10"
1616
PRE_COMMIT_CACHE_PATH: ~/.cache/pre-commit
1717
MINIMUM_COVERAGE_PERCENTAGE: 95
1818
PYTHON_MATRIX: '"3.12.10", "3.13.3"'

.github/workflows/publish-to-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
shared-build-and-publish:
1010
uses: zigpy/workflows/.github/workflows/publish-to-pypi.yml@main
1111
with:
12-
PYTHON_VERSION_DEFAULT: 3.12
12+
PYTHON_VERSION_DEFAULT: "3.12.10"
1313
secrets:
1414
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

requirements_test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pre-commit
66
pytest-cov
77
pytest-sugar
88
pytest-timeout
9-
pytest-asyncio
9+
pytest-asyncio<1.0
1010
pytest-xdist
1111
pytest
1212
zigpy>=0.65.2

0 commit comments

Comments
 (0)