Skip to content

Commit 1a0a753

Browse files
leofangclaude
andcommitted
Suppress pip cache and root-user warnings in Linux container CI jobs
Set PIP_CACHE_DIR=/tmp/pip-cache and PIP_ROOT_USER_ACTION=ignore in the container env for test-wheel-linux and coverage-linux jobs. These jobs run as root in Ubuntu containers where /github/home/.cache/pip is not writable, causing ~54 harmless warnings per CI run. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a40fd94 commit 1a0a753

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
image: ubuntu:22.04
5151
env:
5252
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
53+
PIP_CACHE_DIR: "/tmp/pip-cache"
54+
PIP_ROOT_USER_ACTION: "ignore"
5355
steps:
5456
- name: Ensure GPU is working
5557
run: nvidia-smi

.github/workflows/test-wheel-linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ jobs:
8585
image: ubuntu:22.04
8686
env:
8787
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
88+
PIP_CACHE_DIR: "/tmp/pip-cache"
89+
PIP_ROOT_USER_ACTION: "ignore"
8890
steps:
8991
- name: Ensure GPU is working
9092
run: nvidia-smi

0 commit comments

Comments
 (0)