Skip to content

Commit 056cd5c

Browse files
authored
[ci][bug] remove "cache: 'pip'" from python setup to avoid post python setup failure (#2073)
^ also adds cache to skyrl cpu test
1 parent 94d5389 commit 056cd5c

14 files changed

Lines changed: 6 additions & 17 deletions

.github/workflows/cpu_skyrl.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ jobs:
3737
steps:
3838
- uses: actions/checkout@v4
3939
- name: Install uv
40-
run: |
41-
curl -LsSf https://astral.sh/uv/install.sh | sh
40+
# Use the action rather than the curl installer: on GitHub-hosted runners it
41+
# also restores/saves ~/.cache/uv between runs, which matters here because
42+
# this job resolves several distinct extra sets (tinker/jax/dev).
43+
uses: astral-sh/setup-uv@v6
44+
with:
45+
enable-cache: true
4246
- name: Run lint
4347
run: |
4448
# Pin to match the ruff rev in .pre-commit-config.yaml. Unpinned `uvx ruff`

.github/workflows/cpu_skyrl_train.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
with:
4343
# Semantic version range syntax or exact version of a Python version
4444
python-version: '3.12'
45-
cache: 'pip'
4645
- name: Install the latest version of uv
4746
uses: astral-sh/setup-uv@v6
4847
with:
@@ -64,7 +63,6 @@ jobs:
6463
uses: actions/setup-python@v5
6564
with:
6665
python-version: '3.12'
67-
cache: 'pip'
6866
- name: Install the latest version of uv
6967
uses: astral-sh/setup-uv@v6
7068
with:
@@ -88,7 +86,6 @@ jobs:
8886
uses: actions/setup-python@v5
8987
with:
9088
python-version: '3.12'
91-
cache: 'pip'
9289
- name: Install the latest version of uv
9390
uses: astral-sh/setup-uv@v6
9491
with:

.github/workflows/gpu_ci_h100.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
uses: actions/setup-python@v5
5353
with:
5454
python-version: '3.12'
55-
cache: 'pip'
5655
- name: Install the latest version of uv
5756
uses: astral-sh/setup-uv@v6
5857
with:

.github/workflows/gpu_e2e_ci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
with:
2727
# Semantic version range syntax or exact version of a Python version
2828
python-version: '3.12'
29-
cache: 'pip'
3029
- name: Install the latest version of uv
3130
uses: astral-sh/setup-uv@v6
3231
with:

.github/workflows/gpu_e2e_ci_fully_async.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
with:
2727
# Semantic version range syntax or exact version of a Python version
2828
python-version: '3.12'
29-
cache: 'pip'
3029
- name: Install the latest version of uv
3130
uses: astral-sh/setup-uv@v6
3231
with:

.github/workflows/gpu_e2e_ci_megatron.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
with:
2727
# Semantic version range syntax or exact version of a Python version
2828
python-version: '3.12'
29-
cache: 'pip'
3029
- name: Install the latest version of uv
3130
uses: astral-sh/setup-uv@v6
3231
with:

.github/workflows/gpu_e2e_ci_sft.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
with:
2727
# Semantic version range syntax or exact version of a Python version
2828
python-version: '3.12'
29-
cache: 'pip'
3029
- name: Install the latest version of uv
3130
uses: astral-sh/setup-uv@v6
3231
with:

.github/workflows/gpu_e2e_ci_tinker.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
with:
2727
# Semantic version range syntax or exact version of a Python version
2828
python-version: '3.12'
29-
cache: 'pip'
3029
- name: Install the latest version of uv
3130
uses: astral-sh/setup-uv@v6
3231
with:

.github/workflows/gpu_e2e_ci_tinker_fully_async.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
with:
2727
# Semantic version range syntax or exact version of a Python version
2828
python-version: '3.12'
29-
cache: 'pip'
3029
- name: Install the latest version of uv
3130
uses: astral-sh/setup-uv@v6
3231
with:

.github/workflows/gpu_skyrl.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
uses: actions/setup-python@v5
4141
with:
4242
python-version: '3.12'
43-
cache: 'pip'
4443
- name: Install the latest version of uv
4544
uses: astral-sh/setup-uv@v6
4645
with:

0 commit comments

Comments
 (0)