mirror of
https://github.com/esphome/esphome.git
synced 2025-10-11 14:23:47 +01:00
adj
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -392,7 +392,7 @@ jobs:
|
|||||||
python3 script/test_build_components.py -e compile -c ${{ matrix.file }}
|
python3 script/test_build_components.py -e compile -c ${{ matrix.file }}
|
||||||
|
|
||||||
test-build-components-splitter:
|
test-build-components-splitter:
|
||||||
name: Split components for intelligent grouping (10 per batch)
|
name: Split components for intelligent grouping (15 per batch)
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
needs:
|
needs:
|
||||||
- common
|
- common
|
||||||
@@ -417,12 +417,12 @@ jobs:
|
|||||||
components='${{ needs.determine-jobs.outputs.changed-components }}'
|
components='${{ needs.determine-jobs.outputs.changed-components }}'
|
||||||
|
|
||||||
echo "Splitting components intelligently..."
|
echo "Splitting components intelligently..."
|
||||||
output=$(python3 script/split_components_for_ci.py --components "$components" --batch-size 10 --output github)
|
output=$(python3 script/split_components_for_ci.py --components "$components" --batch-size 15 --output github)
|
||||||
|
|
||||||
echo "$output" >> $GITHUB_OUTPUT
|
echo "$output" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
test-build-components-split:
|
test-build-components-split:
|
||||||
name: Test components with intelligent grouping
|
name: Test components batch (${{ matrix.components }})
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
needs:
|
needs:
|
||||||
- common
|
- common
|
||||||
|
@@ -49,7 +49,7 @@ def has_test_files(component_name: str, tests_dir: Path) -> bool:
|
|||||||
def create_intelligent_batches(
|
def create_intelligent_batches(
|
||||||
components: list[str],
|
components: list[str],
|
||||||
tests_dir: Path,
|
tests_dir: Path,
|
||||||
batch_size: int = 10,
|
batch_size: int = 15,
|
||||||
) -> list[list[str]]:
|
) -> list[list[str]]:
|
||||||
"""Create batches optimized for component grouping.
|
"""Create batches optimized for component grouping.
|
||||||
|
|
||||||
@@ -161,8 +161,8 @@ def main() -> int:
|
|||||||
"--batch-size",
|
"--batch-size",
|
||||||
"-b",
|
"-b",
|
||||||
type=int,
|
type=int,
|
||||||
default=10,
|
default=15,
|
||||||
help="Target batch size (default: 10)",
|
help="Target batch size (default: 15)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--tests-dir",
|
"--tests-dir",
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
packages:
|
||||||
|
i2c: !include ../../test_build_components/common/i2c/esp32-p4-idf.yaml
|
||||||
|
|
||||||
esp_ldo:
|
esp_ldo:
|
||||||
- id: ldo_id
|
- id: ldo_id
|
||||||
channel: 3
|
channel: 3
|
||||||
@@ -13,9 +16,3 @@ display:
|
|||||||
#id: backlight_id
|
#id: backlight_id
|
||||||
|
|
||||||
psram:
|
psram:
|
||||||
|
|
||||||
i2c:
|
|
||||||
sda: GPIO7
|
|
||||||
scl: GPIO8
|
|
||||||
scan: true
|
|
||||||
frequency: 400kHz
|
|
||||||
|
@@ -1,13 +1,12 @@
|
|||||||
modbus:
|
modbus:
|
||||||
- id: mod_bus1
|
|
||||||
flow_control_pin: ${flow_control_pin}
|
|
||||||
- id: mod_bus2
|
- id: mod_bus2
|
||||||
|
uart_id: uart_bus
|
||||||
role: server
|
role: server
|
||||||
|
|
||||||
modbus_controller:
|
modbus_controller:
|
||||||
- id: modbus_controller1
|
- id: modbus_controller1
|
||||||
address: 0x2
|
address: 0x2
|
||||||
modbus_id: mod_bus1
|
modbus_id: modbus_bus
|
||||||
allow_duplicate_commands: false
|
allow_duplicate_commands: false
|
||||||
on_online:
|
on_online:
|
||||||
then:
|
then:
|
||||||
|
@@ -1,7 +1,4 @@
|
|||||||
substitutions:
|
|
||||||
flow_control_pin: GPIO3
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
uart: !include ../../test_build_components/common/uart/esp32-c3-idf.yaml
|
modbus: !include ../../test_build_components/common/modbus/esp32-c3-idf.yaml
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@@ -1,7 +1,4 @@
|
|||||||
substitutions:
|
|
||||||
flow_control_pin: GPIO13
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
uart: !include ../../test_build_components/common/uart/esp32-idf.yaml
|
modbus: !include ../../test_build_components/common/modbus/esp32-idf.yaml
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@@ -1,7 +1,4 @@
|
|||||||
substitutions:
|
|
||||||
flow_control_pin: GPIO15
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
|
modbus: !include ../../test_build_components/common/modbus/esp8266-ard.yaml
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@@ -1,7 +1,4 @@
|
|||||||
substitutions:
|
|
||||||
flow_control_pin: GPIO6
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
uart: !include ../../test_build_components/common/uart/rp2040-ard.yaml
|
modbus: !include ../../test_build_components/common/modbus/rp2040-ard.yaml
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
Reference in New Issue
Block a user