-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,136 changed files
with
57,606 additions
and
16,019 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,9 +40,9 @@ env: | |
CACHE_VERSION: 11 | ||
UV_CACHE_VERSION: 1 | ||
MYPY_CACHE_VERSION: 9 | ||
HA_SHORT_VERSION: "2024.11" | ||
HA_SHORT_VERSION: "2024.12" | ||
DEFAULT_PYTHON: "3.12" | ||
ALL_PYTHON_VERSIONS: "['3.12']" | ||
ALL_PYTHON_VERSIONS: "['3.12', '3.13']" | ||
# 10.3 is the oldest supported version | ||
# - 10.3.32 is the version currently shipped with Synology (as of 17 Feb 2022) | ||
# 10.6 is the current long-term-support | ||
|
@@ -622,13 +622,13 @@ jobs: | |
steps: | ||
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
python-version: ${{ matrix.python-version }} | ||
check-latest: true | ||
- name: Restore full Python ${{ env.DEFAULT_PYTHON }} virtual environment | ||
- name: Restore full Python ${{ matrix.python-version }} virtual environment | ||
id: cache-venv | ||
uses: actions/cache/[email protected] | ||
with: | ||
|
@@ -819,11 +819,7 @@ jobs: | |
needs: | ||
- info | ||
- base | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ${{ fromJson(needs.info.outputs.python_versions) }} | ||
name: Split tests for full run Python ${{ matrix.python-version }} | ||
name: Split tests for full run | ||
steps: | ||
- name: Install additional OS dependencies | ||
run: | | ||
|
@@ -836,11 +832,11 @@ jobs: | |
libgammu-dev | ||
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
check-latest: true | ||
- name: Restore base Python virtual environment | ||
id: cache-venv | ||
|
@@ -858,7 +854,7 @@ jobs: | |
- name: Upload pytest_buckets | ||
uses: actions/[email protected] | ||
with: | ||
name: pytest_buckets-${{ matrix.python-version }} | ||
name: pytest_buckets | ||
path: pytest_buckets.txt | ||
overwrite: true | ||
|
||
|
@@ -923,7 +919,7 @@ jobs: | |
- name: Download pytest_buckets | ||
uses: actions/[email protected] | ||
with: | ||
name: pytest_buckets-${{ matrix.python-version }} | ||
name: pytest_buckets | ||
- name: Compile English translations | ||
run: | | ||
. venv/bin/activate | ||
|
@@ -949,6 +945,7 @@ jobs: | |
--timeout=9 \ | ||
--durations=10 \ | ||
--numprocesses auto \ | ||
--snapshot-details \ | ||
--dist=loadfile \ | ||
${cov_params[@]} \ | ||
-o console_output_style=count \ | ||
|
@@ -1071,6 +1068,7 @@ jobs: | |
-qq \ | ||
--timeout=20 \ | ||
--numprocesses 1 \ | ||
--snapshot-details \ | ||
${cov_params[@]} \ | ||
-o console_output_style=count \ | ||
--durations=10 \ | ||
|
@@ -1199,6 +1197,7 @@ jobs: | |
-qq \ | ||
--timeout=9 \ | ||
--numprocesses 1 \ | ||
--snapshot-details \ | ||
${cov_params[@]} \ | ||
-o console_output_style=count \ | ||
--durations=0 \ | ||
|
@@ -1249,12 +1248,11 @@ jobs: | |
pattern: coverage-* | ||
- name: Upload coverage to Codecov | ||
if: needs.info.outputs.test_full_suite == 'true' | ||
uses: codecov/codecov-action@v4.6.0 | ||
uses: codecov/codecov-action@v5.0.7 | ||
with: | ||
fail_ci_if_error: true | ||
flags: full-suite | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
version: v0.6.0 | ||
|
||
pytest-partial: | ||
runs-on: ubuntu-24.04 | ||
|
@@ -1345,6 +1343,7 @@ jobs: | |
-qq \ | ||
--timeout=9 \ | ||
--numprocesses auto \ | ||
--snapshot-details \ | ||
${cov_params[@]} \ | ||
-o console_output_style=count \ | ||
--durations=0 \ | ||
|
@@ -1387,8 +1386,7 @@ jobs: | |
pattern: coverage-* | ||
- name: Upload coverage to Codecov | ||
if: needs.info.outputs.test_full_suite == 'false' | ||
uses: codecov/codecov-action@v4.6.0 | ||
uses: codecov/codecov-action@v5.0.7 | ||
with: | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
version: v0.6.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,11 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/[email protected].0 | ||
uses: github/codeql-action/[email protected].5 | ||
with: | ||
languages: python | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/[email protected].0 | ||
uses: github/codeql-action/[email protected].5 | ||
with: | ||
category: "/language:python" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
abi: ["cp312"] | ||
abi: ["cp312", "cp313"] | ||
arch: ${{ fromJson(needs.init.outputs.architectures) }} | ||
steps: | ||
- name: Checkout the repository | ||
|
@@ -135,15 +135,15 @@ jobs: | |
sed -i "/uv/d" requirements_diff.txt | ||
- name: Build wheels | ||
uses: home-assistant/wheels@2024.07.1 | ||
uses: home-assistant/wheels@2024.11.0 | ||
with: | ||
abi: ${{ matrix.abi }} | ||
tag: musllinux_1_2 | ||
arch: ${{ matrix.arch }} | ||
wheels-key: ${{ secrets.WHEELS_KEY }} | ||
env-file: true | ||
apk: "libffi-dev;openssl-dev;yaml-dev;nasm" | ||
skip-binary: aiohttp;multidict;yarl | ||
apk: "libffi-dev;openssl-dev;yaml-dev;nasm;zlib-dev" | ||
skip-binary: aiohttp;multidict;propcache;yarl;SQLAlchemy | ||
constraints: "homeassistant/package_constraints.txt" | ||
requirements-diff: "requirements_diff.txt" | ||
requirements: "requirements.txt" | ||
|
@@ -156,7 +156,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
abi: ["cp312"] | ||
abi: ["cp312", "cp313"] | ||
arch: ${{ fromJson(needs.init.outputs.architectures) }} | ||
steps: | ||
- name: Checkout the repository | ||
|
@@ -198,6 +198,7 @@ jobs: | |
split -l $(expr $(expr $(cat requirements_all.txt | wc -l) + 1) / 3) requirements_all_wheels_${{ matrix.arch }}.txt requirements_all.txt | ||
- name: Create requirements for cython<3 | ||
if: matrix.abi == 'cp312' | ||
run: | | ||
# Some dependencies still require 'cython<3' | ||
# and don't yet use isolated build environments. | ||
|
@@ -208,7 +209,8 @@ jobs: | |
cat homeassistant/package_constraints.txt | grep 'pydantic==' >> requirements_old-cython.txt | ||
- name: Build wheels (old cython) | ||
uses: home-assistant/[email protected] | ||
uses: home-assistant/[email protected] | ||
if: matrix.abi == 'cp312' | ||
with: | ||
abi: ${{ matrix.abi }} | ||
tag: musllinux_1_2 | ||
|
@@ -223,43 +225,43 @@ jobs: | |
pip: "'cython<3'" | ||
|
||
- name: Build wheels (part 1) | ||
uses: home-assistant/wheels@2024.07.1 | ||
uses: home-assistant/wheels@2024.11.0 | ||
with: | ||
abi: ${{ matrix.abi }} | ||
tag: musllinux_1_2 | ||
arch: ${{ matrix.arch }} | ||
wheels-key: ${{ secrets.WHEELS_KEY }} | ||
env-file: true | ||
apk: "bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;libpng-dev;libjpeg-turbo-dev;tiff-dev;cups-dev;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev;gammu-dev;yaml-dev;openblas-dev;fftw-dev;lapack-dev;gfortran;blas-dev;eigen-dev;freetype-dev;glew-dev;harfbuzz-dev;hdf5-dev;libdc1394-dev;libtbb-dev;mesa-dev;openexr-dev;openjpeg-dev;uchardet-dev;nasm" | ||
skip-binary: aiohttp;charset-normalizer;grpcio;multidict;SQLAlchemy;propcache;protobuf;pydantic;pymicro-vad;yarl | ||
apk: "bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;libpng-dev;libjpeg-turbo-dev;tiff-dev;cups-dev;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev;gammu-dev;yaml-dev;openblas-dev;fftw-dev;lapack-dev;gfortran;blas-dev;eigen-dev;freetype-dev;glew-dev;harfbuzz-dev;hdf5-dev;libdc1394-dev;libtbb-dev;mesa-dev;openexr-dev;openjpeg-dev;uchardet-dev;nasm;zlib-dev" | ||
skip-binary: aiohttp;charset-normalizer;grpcio;multidict;SQLAlchemy;propcache;protobuf;pymicro-vad;yarl | ||
constraints: "homeassistant/package_constraints.txt" | ||
requirements-diff: "requirements_diff.txt" | ||
requirements: "requirements_all.txtaa" | ||
|
||
- name: Build wheels (part 2) | ||
uses: home-assistant/wheels@2024.07.1 | ||
uses: home-assistant/wheels@2024.11.0 | ||
with: | ||
abi: ${{ matrix.abi }} | ||
tag: musllinux_1_2 | ||
arch: ${{ matrix.arch }} | ||
wheels-key: ${{ secrets.WHEELS_KEY }} | ||
env-file: true | ||
apk: "bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;libpng-dev;libjpeg-turbo-dev;tiff-dev;cups-dev;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev;gammu-dev;yaml-dev;openblas-dev;fftw-dev;lapack-dev;gfortran;blas-dev;eigen-dev;freetype-dev;glew-dev;harfbuzz-dev;hdf5-dev;libdc1394-dev;libtbb-dev;mesa-dev;openexr-dev;openjpeg-dev;uchardet-dev;nasm" | ||
skip-binary: aiohttp;charset-normalizer;grpcio;multidict;SQLAlchemy;propcache;protobuf;pydantic;pymicro-vad;yarl | ||
apk: "bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;libpng-dev;libjpeg-turbo-dev;tiff-dev;cups-dev;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev;gammu-dev;yaml-dev;openblas-dev;fftw-dev;lapack-dev;gfortran;blas-dev;eigen-dev;freetype-dev;glew-dev;harfbuzz-dev;hdf5-dev;libdc1394-dev;libtbb-dev;mesa-dev;openexr-dev;openjpeg-dev;uchardet-dev;nasm;zlib-dev" | ||
skip-binary: aiohttp;charset-normalizer;grpcio;multidict;SQLAlchemy;propcache;protobuf;pymicro-vad;yarl | ||
constraints: "homeassistant/package_constraints.txt" | ||
requirements-diff: "requirements_diff.txt" | ||
requirements: "requirements_all.txtab" | ||
|
||
- name: Build wheels (part 3) | ||
uses: home-assistant/wheels@2024.07.1 | ||
uses: home-assistant/wheels@2024.11.0 | ||
with: | ||
abi: ${{ matrix.abi }} | ||
tag: musllinux_1_2 | ||
arch: ${{ matrix.arch }} | ||
wheels-key: ${{ secrets.WHEELS_KEY }} | ||
env-file: true | ||
apk: "bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;libpng-dev;libjpeg-turbo-dev;tiff-dev;cups-dev;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev;gammu-dev;yaml-dev;openblas-dev;fftw-dev;lapack-dev;gfortran;blas-dev;eigen-dev;freetype-dev;glew-dev;harfbuzz-dev;hdf5-dev;libdc1394-dev;libtbb-dev;mesa-dev;openexr-dev;openjpeg-dev;uchardet-dev;nasm" | ||
skip-binary: aiohttp;charset-normalizer;grpcio;multidict;SQLAlchemy;propcache;protobuf;pydantic;pymicro-vad;yarl | ||
apk: "bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;libpng-dev;libjpeg-turbo-dev;tiff-dev;cups-dev;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev;gammu-dev;yaml-dev;openblas-dev;fftw-dev;lapack-dev;gfortran;blas-dev;eigen-dev;freetype-dev;glew-dev;harfbuzz-dev;hdf5-dev;libdc1394-dev;libtbb-dev;mesa-dev;openexr-dev;openjpeg-dev;uchardet-dev;nasm;zlib-dev" | ||
skip-binary: aiohttp;charset-normalizer;grpcio;multidict;SQLAlchemy;propcache;protobuf;pymicro-vad;yarl | ||
constraints: "homeassistant/package_constraints.txt" | ||
requirements-diff: "requirements_diff.txt" | ||
requirements: "requirements_all.txtac" |
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
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
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
Oops, something went wrong.