Skip to content

Commit 2930f8c

Browse files
authored
Set HOMEBREW_NO_INSTALL_CLEANUP to speedup brew installs (#9713)
1 parent 52cf716 commit 2930f8c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/daily.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ concurrency:
1818
cancel-in-progress: true
1919

2020
env:
21+
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Speedup brew install. Environments are isolated, no need to cleanup old versions
22+
NONINTERACTIVE: 1 # Required for brew install on CI
2123
PIP_DISABLE_PIP_VERSION_CHECK: 1
2224
FORCE_COLOR: 1
2325
TERM: xterm-256color # needed for FORCE_COLOR to work on mypy on Ubuntu, see https://github.com/python/mypy/issues/13817
@@ -81,7 +83,7 @@ jobs:
8183
PYTHON_EXECUTABLE="xvfb-run python"
8284
else
8385
if [ "${{ runner.os }}" = "macOS" ] && [ -n "$PACKAGES" ]; then
84-
NONINTERACTIVE=1 brew install $PACKAGES
86+
brew install $PACKAGES
8587
fi
8688
8789
if [ "${{ runner.os }}" = "Windows" ] && [ -n "$PACKAGES" ]; then

.github/workflows/stubtest_third_party.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ permissions:
1212
contents: read
1313

1414
env:
15+
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Speedup brew install. Environments are isolated, no need to cleanup old versions
16+
NONINTERACTIVE: 1 # Required for brew install on CI
1517
PIP_DISABLE_PIP_VERSION_CHECK: 1
1618
FORCE_COLOR: 1
1719
TERM: xterm-256color # needed for FORCE_COLOR to work on mypy on Ubuntu, see https://github.com/python/mypy/issues/13817
@@ -70,7 +72,7 @@ jobs:
7072
else
7173
if [ "${{ runner.os }}" = "macOS" ] && [ -n "$PACKAGES" ]; then
7274
echo "Installing Homebrew packages: $PACKAGES"
73-
NONINTERACTIVE=1 brew install $PACKAGES
75+
brew install $PACKAGES
7476
fi
7577
7678
if [ "${{ runner.os }}" = "Windows" ] && [ -n "$PACKAGES" ]; then

0 commit comments

Comments
 (0)