Skip to content

Commit 62f15d7

Browse files
author
Peyton Gardipee
committed
Revert to actions/setup-python@v5 to fix cache issues
1 parent 1efc484 commit 62f15d7

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/cpu-tests.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ defaults:
2727
shell: bash
2828

2929
env:
30-
HF_HOME: ${{ github.workspace }}/.cache-HF # Define HF_HOME for caching
31-
HUGGINGFACE_HUB_CACHE: ${{ github.workspace }}/.cache-HF/hub
32-
TRANSFORMERS_CACHE: ${{ github.workspace }}/.cache-HF/transformers
33-
DATASETS_CACHE: ${{ github.workspace }}/.cache-HF/datasets
34-
HF_DATASETS_CACHE: ${{ github.workspace }}/.cache-HF/datasets
30+
HF_HOME: .cache-HF # Define HF_HOME for caching
31+
TRANSFORMERS_CACHE: .cache-HF/transformers
32+
DATASETS_CACHE: .cache-HF/datasets
33+
HF_DATASETS_CACHE: .cache-HF/datasets
3534

3635
jobs:
3736
testing-imports:
@@ -46,7 +45,7 @@ jobs:
4645
steps:
4746
- name: Checkout generic
4847
uses: actions/checkout@v5
49-
- uses: actions/setup-python@v6
48+
- uses: actions/setup-python@v5
5049
with:
5150
python-version: ${{ matrix.python-version }}
5251

@@ -95,7 +94,7 @@ jobs:
9594
if: github.event_name == 'pull_request_target'
9695
with:
9796
ref: ${{ github.event.pull_request.head.sha }}
98-
- uses: actions/setup-python@v6
97+
- uses: actions/setup-python@v5
9998
with:
10099
python-version: ${{ matrix.python-version }}
101100
cache-dependency-path: pyproject.toml
@@ -123,22 +122,14 @@ jobs:
123122
pip install '.[extra,compiler,test]' -U --upgrade-strategy eager
124123
pip list
125124
126-
- name: Show cache before tests
127-
run: |
128-
pip install -q py-tree
129-
echo "=== Cache contents before tests ==="
130-
python -m py_tree -d 1 .cache-HF
131-
132125
- name: Run tests
133126
env:
134127
HF_TOKEN: ${{ secrets.HF_TOKEN }}
135128
run: pytest -v litgpt/ tests/ --timeout=180 --durations=100
136129

137-
- name: Show cache after tests
138-
if: always()
130+
- name: Show cache
139131
run: |
140132
pip install -q py-tree
141-
echo "=== Cache contents after tests ==="
142133
python -m py_tree -d 1 .cache-HF
143134
144135
testing-guardian:

0 commit comments

Comments
 (0)