-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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
3,553 changed files
with
136,484 additions
and
36,452 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
|
||
|
@@ -69,7 +69,7 @@ jobs: | |
run: find ./homeassistant/components/*/translations -name "*.json" | tar zcvf translations.tar.gz -T - | ||
|
||
- name: Upload translations | ||
uses: actions/upload-artifact@v4.3.6 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: translations | ||
path: translations.tar.gz | ||
|
@@ -116,7 +116,7 @@ jobs: | |
|
||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
if: needs.init.outputs.channel == 'dev' | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
|
||
|
@@ -126,7 +126,7 @@ jobs: | |
env: | ||
UV_PRERELEASE: allow | ||
run: | | ||
python3 -m pip install "$(grep '^uv' < requirements_test.txt)" | ||
python3 -m pip install "$(grep '^uv' < requirements.txt)" | ||
uv pip install packaging tomli | ||
uv pip install . | ||
python3 script/version_bump.py nightly --set-nightly-version "${{ needs.init.outputs.version }}" | ||
|
@@ -316,6 +316,7 @@ jobs: | |
packages: write | ||
id-token: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
registry: ["ghcr.io/home-assistant", "docker.io/homeassistant"] | ||
steps: | ||
|
@@ -453,7 +454,7 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
|
||
|
@@ -530,7 +531,7 @@ jobs: | |
|
||
- name: Generate artifact attestation | ||
if: needs.init.outputs.channel != 'dev' && needs.init.outputs.publish == 'true' | ||
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2 | ||
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3 | ||
with: | ||
subject-name: ${{ env.HASSFEST_IMAGE_NAME }} | ||
subject-digest: ${{ steps.push.outputs.digest }} | ||
|
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 |
---|---|---|
|
@@ -39,8 +39,8 @@ on: | |
env: | ||
CACHE_VERSION: 10 | ||
UV_CACHE_VERSION: 1 | ||
MYPY_CACHE_VERSION: 8 | ||
HA_SHORT_VERSION: "2024.9" | ||
MYPY_CACHE_VERSION: 9 | ||
HA_SHORT_VERSION: "2024.10" | ||
DEFAULT_PYTHON: "3.12" | ||
ALL_PYTHON_VERSIONS: "['3.12']" | ||
# 10.3 is the oldest supported version | ||
|
@@ -234,7 +234,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
check-latest: true | ||
|
@@ -252,7 +252,7 @@ jobs: | |
python -m venv venv | ||
. venv/bin/activate | ||
python --version | ||
pip install "$(grep '^uv' < requirements_test.txt)" | ||
pip install "$(grep '^uv' < requirements.txt)" | ||
uv pip install "$(cat requirements_test.txt | grep pre-commit)" | ||
- name: Restore pre-commit environment from cache | ||
id: cache-precommit | ||
|
@@ -279,7 +279,7 @@ jobs: | |
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
id: python | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
|
@@ -319,7 +319,7 @@ jobs: | |
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
id: python | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
|
@@ -359,7 +359,7 @@ jobs: | |
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
id: python | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
|
@@ -429,17 +429,32 @@ jobs: | |
. venv/bin/activate | ||
pre-commit run --show-diff-on-failure --hook-stage manual codespell --all-files | ||
lint-hadolint: | ||
name: Check ${{ matrix.file }} | ||
runs-on: ubuntu-24.04 | ||
needs: | ||
- info | ||
if: | | ||
github.event.inputs.pylint-only != 'true' | ||
&& github.event.inputs.mypy-only != 'true' | ||
&& github.event.inputs.audit-licenses-only != 'true' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
file: | ||
- Dockerfile | ||
- Dockerfile.dev | ||
- script/hassfest/docker/Dockerfile | ||
steps: | ||
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: Register hadolint problem matcher | ||
run: | | ||
echo "::add-matcher::.github/workflows/matchers/hadolint.json" | ||
- name: Check Dockerfile | ||
uses: docker://hadolint/hadolint:v1.18.2 | ||
with: | ||
args: hadolint Dockerfile | ||
- name: Check Dockerfile.dev | ||
uses: docker://hadolint/hadolint:v1.18.2 | ||
- name: Check ${{ matrix.file }} | ||
uses: docker://hadolint/hadolint:v2.12.0 | ||
with: | ||
args: hadolint Dockerfile.dev | ||
args: hadolint ${{ matrix.file }} | ||
|
||
base: | ||
name: Prepare dependencies | ||
|
@@ -454,14 +469,14 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
check-latest: true | ||
- name: Generate partial uv restore key | ||
id: generate-uv-key | ||
run: | | ||
uv_version=$(cat requirements_test.txt | grep uv | cut -d '=' -f 3) | ||
uv_version=$(cat requirements.txt | grep uv | cut -d '=' -f 3) | ||
echo "version=${uv_version}" >> $GITHUB_OUTPUT | ||
echo "key=uv-${{ env.UV_CACHE_VERSION }}-${uv_version}-${{ | ||
env.HA_SHORT_VERSION }}-$(date -u '+%Y-%m-%dT%H:%M:%s')" >> $GITHUB_OUTPUT | ||
|
@@ -510,7 +525,7 @@ jobs: | |
python -m venv venv | ||
. venv/bin/activate | ||
python --version | ||
pip install "$(grep '^uv' < requirements_test.txt)" | ||
pip install "$(grep '^uv' < requirements.txt)" | ||
uv pip install -U "pip>=21.3.1" setuptools wheel | ||
uv pip install -r requirements.txt | ||
python -m script.gen_requirements_all ci | ||
|
@@ -538,7 +553,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
check-latest: true | ||
|
@@ -571,7 +586,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
check-latest: true | ||
|
@@ -605,7 +620,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
check-latest: true | ||
|
@@ -623,7 +638,7 @@ jobs: | |
. venv/bin/activate | ||
pip-licenses --format=json --output-file=licenses.json | ||
- name: Upload licenses | ||
uses: actions/upload-artifact@v4.3.6 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: licenses | ||
path: licenses.json | ||
|
@@ -648,7 +663,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
check-latest: true | ||
|
@@ -695,7 +710,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
check-latest: true | ||
|
@@ -740,7 +755,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
check-latest: true | ||
|
@@ -815,7 +830,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
check-latest: true | ||
|
@@ -833,7 +848,7 @@ jobs: | |
. venv/bin/activate | ||
python -m script.split_tests ${{ needs.info.outputs.test_group_count }} tests | ||
- name: Upload pytest_buckets | ||
uses: actions/upload-artifact@v4.3.6 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: pytest_buckets | ||
path: pytest_buckets.txt | ||
|
@@ -879,7 +894,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
check-latest: true | ||
|
@@ -934,14 +949,14 @@ jobs: | |
2>&1 | tee pytest-${{ matrix.python-version }}-${{ matrix.group }}.txt | ||
- name: Upload pytest output | ||
if: success() || failure() && steps.pytest-full.conclusion == 'failure' | ||
uses: actions/upload-artifact@v4.3.6 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: pytest-${{ github.run_number }}-${{ matrix.python-version }}-${{ matrix.group }} | ||
path: pytest-*.txt | ||
overwrite: true | ||
- name: Upload coverage artifact | ||
if: needs.info.outputs.skip_coverage != 'true' | ||
uses: actions/upload-artifact@v4.3.6 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: coverage-${{ matrix.python-version }}-${{ matrix.group }} | ||
path: coverage.xml | ||
|
@@ -999,7 +1014,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
check-latest: true | ||
|
@@ -1060,15 +1075,15 @@ jobs: | |
2>&1 | tee pytest-${{ matrix.python-version }}-${mariadb}.txt | ||
- name: Upload pytest output | ||
if: success() || failure() && steps.pytest-partial.conclusion == 'failure' | ||
uses: actions/upload-artifact@v4.3.6 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: pytest-${{ github.run_number }}-${{ matrix.python-version }}-${{ | ||
steps.pytest-partial.outputs.mariadb }} | ||
path: pytest-*.txt | ||
overwrite: true | ||
- name: Upload coverage artifact | ||
if: needs.info.outputs.skip_coverage != 'true' | ||
uses: actions/upload-artifact@v4.3.6 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: coverage-${{ matrix.python-version }}-${{ | ||
steps.pytest-partial.outputs.mariadb }} | ||
|
@@ -1125,7 +1140,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
check-latest: true | ||
|
@@ -1187,15 +1202,15 @@ jobs: | |
2>&1 | tee pytest-${{ matrix.python-version }}-${postgresql}.txt | ||
- name: Upload pytest output | ||
if: success() || failure() && steps.pytest-partial.conclusion == 'failure' | ||
uses: actions/upload-artifact@v4.3.6 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: pytest-${{ github.run_number }}-${{ matrix.python-version }}-${{ | ||
steps.pytest-partial.outputs.postgresql }} | ||
path: pytest-*.txt | ||
overwrite: true | ||
- name: Upload coverage artifact | ||
if: needs.info.outputs.skip_coverage != 'true' | ||
uses: actions/upload-artifact@v4.3.6 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: coverage-${{ matrix.python-version }}-${{ | ||
steps.pytest-partial.outputs.postgresql }} | ||
|
@@ -1271,7 +1286,7 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: python | ||
uses: actions/setup-python@v5.1.1 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
check-latest: true | ||
|
@@ -1329,14 +1344,14 @@ jobs: | |
2>&1 | tee pytest-${{ matrix.python-version }}-${{ matrix.group }}.txt | ||
- name: Upload pytest output | ||
if: success() || failure() && steps.pytest-partial.conclusion == 'failure' | ||
uses: actions/upload-artifact@v4.3.6 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: pytest-${{ github.run_number }}-${{ matrix.python-version }}-${{ matrix.group }} | ||
path: pytest-*.txt | ||
overwrite: true | ||
- name: Upload coverage artifact | ||
if: needs.info.outputs.skip_coverage != 'true' | ||
uses: actions/upload-artifact@v4.3.6 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: coverage-${{ matrix.python-version }}-${{ matrix.group }} | ||
path: coverage.xml | ||
|
Oops, something went wrong.