Skip to content

Commit 7a4e454

Browse files
authored
detect gh actions -> inet available
1 parent 1b5134f commit 7a4e454

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builder/penv_setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
from platformio.package.version import pepver_to_semver
2525
from platformio.compat import IS_WINDOWS
2626

27+
github_actions = os.getenv('GITHUB_ACTIONS')
28+
2729
PLATFORMIO_URL_VERSION_RE = re.compile(
2830
r'/v?(\d+\.\d+\.\d+(?:[.-]\w+)?(?:\.\d+)?)(?:\.(?:zip|tar\.gz|tar\.bz2))?$',
2931
re.IGNORECASE,
@@ -366,7 +368,7 @@ def setup_python_environment(env, platform, platformio_dir):
366368
uv_executable = get_executable_path(penv_dir, "uv")
367369

368370
# Install espressif32 Python dependencies
369-
if has_internet_connection():
371+
if has_internet_connection() or github_actions:
370372
if not install_python_deps(penv_python, uv_executable):
371373
sys.stderr.write("Error: Failed to install Python dependencies into penv\n")
372374
sys.exit(1)

0 commit comments

Comments
 (0)