forked from espressif/esp-idf
Merge branch 'ci/bypass_import_while_collecting' into 'master'
ci: bypass import failure while checking test scripts See merge request espressif/esp-idf!34226
This commit is contained in:
@@ -309,7 +309,11 @@ generate_build_child_pipeline:
|
|||||||
- non_test_related_apps.txt
|
- non_test_related_apps.txt
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
when: always
|
when: always
|
||||||
|
variables:
|
||||||
|
PYTEST_IGNORE_COLLECT_IMPORT_ERROR: "1"
|
||||||
script:
|
script:
|
||||||
|
# requires basic pytest dependencies
|
||||||
|
- run_cmd bash install.sh --enable-pytest
|
||||||
- run_cmd python tools/ci/dynamic_pipelines/scripts/generate_build_child_pipeline.py
|
- run_cmd python tools/ci/dynamic_pipelines/scripts/generate_build_child_pipeline.py
|
||||||
|
|
||||||
build_child_pipeline:
|
build_child_pipeline:
|
||||||
|
@@ -117,8 +117,10 @@ check_test_scripts_build_test_rules:
|
|||||||
extends:
|
extends:
|
||||||
- .pre_check_template
|
- .pre_check_template
|
||||||
- .before_script:build
|
- .before_script:build
|
||||||
|
variables:
|
||||||
|
PYTEST_IGNORE_COLLECT_IMPORT_ERROR: "1"
|
||||||
script:
|
script:
|
||||||
# required pytest related packages
|
# requires basic pytest dependencies
|
||||||
- run_cmd bash install.sh --enable-pytest
|
- run_cmd bash install.sh --enable-pytest
|
||||||
- python tools/ci/check_build_test_rules.py check-test-scripts examples/ tools/test_apps components
|
- python tools/ci/check_build_test_rules.py check-test-scripts examples/ tools/test_apps components
|
||||||
|
|
||||||
|
@@ -1,12 +1,19 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import socket
|
import socket
|
||||||
from typing import Any, List
|
from typing import Any
|
||||||
|
from typing import List
|
||||||
|
|
||||||
|
try:
|
||||||
import netifaces
|
import netifaces
|
||||||
|
except ImportError:
|
||||||
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
netifaces = MagicMock()
|
||||||
|
logging.warning('netifaces is not installed. Please install it to get network interface information.')
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
ENV_CONFIG_FILE_SEARCH = [
|
ENV_CONFIG_FILE_SEARCH = [
|
||||||
|
@@ -15,3 +15,4 @@ pyyaml
|
|||||||
SimpleWebSocketServer
|
SimpleWebSocketServer
|
||||||
pylint-gitlab
|
pylint-gitlab
|
||||||
minio
|
minio
|
||||||
|
prettytable
|
||||||
|
Reference in New Issue
Block a user