forked from esphome/esphome
-
Notifications
You must be signed in to change notification settings - Fork 1
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
574 changed files
with
18,124 additions
and
5,928 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,10 @@ runs: | |
- name: Build and push to ghcr by digest | ||
id: build-ghcr | ||
uses: docker/[email protected] | ||
uses: docker/[email protected] | ||
env: | ||
DOCKER_BUILD_SUMMARY: false | ||
DOCKER_BUILD_RECORD_UPLOAD: false | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
|
@@ -69,7 +72,10 @@ runs: | |
- name: Build and push to dockerhub by digest | ||
id: build-dockerhub | ||
uses: docker/[email protected] | ||
uses: docker/[email protected] | ||
env: | ||
DOCKER_BUILD_SUMMARY: false | ||
DOCKER_BUILD_RECORD_UPLOAD: false | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Set up Python | ||
uses: actions/setup-python@v5.1.0 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: "3.11" | ||
|
||
|
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 |
---|---|---|
|
@@ -42,11 +42,11 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Python | ||
uses: actions/setup-python@v5.1.0 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: "3.9" | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3.6.1 | ||
uses: docker/setup-buildx-action@v3.7.1 | ||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
|
||
|
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 |
---|---|---|
|
@@ -41,12 +41,12 @@ jobs: | |
run: echo key="${{ hashFiles('requirements.txt', 'requirements_optional.txt', 'requirements_test.txt') }}" >> $GITHUB_OUTPUT | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5.1.0 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
- name: Restore Python virtual environment | ||
id: cache-venv | ||
uses: actions/cache@v4.0.2 | ||
uses: actions/cache@v4.1.0 | ||
with: | ||
path: venv | ||
# yamllint disable-line rule:line-length | ||
|
@@ -302,14 +302,14 @@ jobs: | |
|
||
- name: Cache platformio | ||
if: github.ref == 'refs/heads/dev' | ||
uses: actions/cache@v4.0.2 | ||
uses: actions/cache@v4.1.0 | ||
with: | ||
path: ~/.platformio | ||
key: platformio-${{ matrix.pio_cache_key }} | ||
|
||
- name: Cache platformio | ||
if: github.ref != 'refs/heads/dev' | ||
uses: actions/cache/restore@v4.0.2 | ||
uses: actions/cache/restore@v4.1.0 | ||
with: | ||
path: ~/.platformio | ||
key: platformio-${{ matrix.pio_cache_key }} | ||
|
@@ -397,7 +397,7 @@ jobs: | |
file: ${{ fromJson(needs.list-components.outputs.components) }} | ||
steps: | ||
- name: Install dependencies | ||
run: sudo apt-get install libsodium-dev libsdl2-dev | ||
run: sudo apt-get install libsdl2-dev | ||
|
||
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
|
@@ -451,7 +451,7 @@ jobs: | |
run: echo ${{ matrix.components }} | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get install libsodium-dev libsdl2-dev | ||
run: sudo apt-get install libsdl2-dev | ||
|
||
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
|
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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL Advanced" | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "30 18 * * 4" | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze (${{ matrix.language }}) | ||
# Runner size impacts CodeQL analysis time. To learn more, please see: | ||
# - https://gh.io/recommended-hardware-resources-for-running-codeql | ||
# - https://gh.io/supported-runners-and-hardware-resources | ||
# - https://gh.io/using-larger-runners (GitHub.com only) | ||
# Consider using larger runners or machines with greater resources for possible analysis time improvements. | ||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
|
||
# required to fetch internal or private CodeQL packs | ||
packages: read | ||
|
||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
# - language: c-cpp | ||
# build-mode: autobuild | ||
- language: python | ||
build-mode: none | ||
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' | ||
# Use `c-cpp` to analyze code written in C, C++ or both | ||
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both | ||
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both | ||
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, | ||
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. | ||
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how | ||
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
build-mode: ${{ matrix.build-mode }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
|
||
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality | ||
|
||
# If the analyze step fails for one of the languages you are analyzing with | ||
# "We were unable to automatically build your code", modify the matrix above | ||
# to set the build mode to "manual" for that language. Then modify this step | ||
# to build your code. | ||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
- if: matrix.build-mode == 'manual' | ||
shell: bash | ||
run: | | ||
echo 'If you are using a "manual" build mode for one or more of the' \ | ||
'languages you are analyzing, replace this with the commands to build' \ | ||
'your code, for example:' | ||
echo ' make bootstrap' | ||
echo ' make release' | ||
exit 1 | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:${{matrix.language}}" |
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 |
---|---|---|
|
@@ -53,7 +53,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Python | ||
uses: actions/setup-python@v5.1.0 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: "3.x" | ||
- name: Set up python environment | ||
|
@@ -65,7 +65,7 @@ jobs: | |
pip3 install build | ||
python3 -m build | ||
- name: Publish | ||
uses: pypa/gh-action-pypi-publish@v1.9.0 | ||
uses: pypa/gh-action-pypi-publish@v1.10.3 | ||
|
||
deploy-docker: | ||
name: Build ESPHome ${{ matrix.platform }} | ||
|
@@ -85,12 +85,12 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Python | ||
uses: actions/setup-python@v5.1.0 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3.6.1 | ||
uses: docker/setup-buildx-action@v3.7.1 | ||
- name: Set up QEMU | ||
if: matrix.platform != 'linux/amd64' | ||
uses: docker/[email protected] | ||
|
@@ -141,7 +141,7 @@ jobs: | |
echo name=$(cat /tmp/platform) >> $GITHUB_OUTPUT | ||
- name: Upload digests | ||
uses: actions/upload-artifact@v4.3.4 | ||
uses: actions/upload-artifact@v4.4.1 | ||
with: | ||
name: digests-${{ steps.sanitize.outputs.name }} | ||
path: /tmp/digests | ||
|
@@ -184,7 +184,7 @@ jobs: | |
merge-multiple: true | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3.6.1 | ||
uses: docker/setup-buildx-action@v3.7.1 | ||
|
||
- name: Log in to docker hub | ||
if: matrix.registry == 'dockerhub' | ||
|
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
path: lib/home-assistant | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5.1.0 | ||
uses: actions/setup-python@v5.2.0 | ||
with: | ||
python-version: 3.12 | ||
|
||
|
@@ -36,7 +36,7 @@ jobs: | |
python ./script/sync-device_class.py | ||
- name: Commit changes | ||
uses: peter-evans/create-pull-request@v6.1.0 | ||
uses: peter-evans/create-pull-request@v7.0.5 | ||
with: | ||
commit-message: "Synchronise Device Classes from Home Assistant" | ||
committer: esphomebot <[email protected]> | ||
|
Oops, something went wrong.