@@ -27,11 +27,10 @@ defaults:
27
27
shell : bash
28
28
29
29
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
35
34
36
35
jobs :
37
36
testing-imports :
46
45
steps :
47
46
- name : Checkout generic
48
47
uses : actions/checkout@v5
49
- - uses : actions/setup-python@v6
48
+ - uses : actions/setup-python@v5
50
49
with :
51
50
python-version : ${{ matrix.python-version }}
52
51
95
94
if : github.event_name == 'pull_request_target'
96
95
with :
97
96
ref : ${{ github.event.pull_request.head.sha }}
98
- - uses : actions/setup-python@v6
97
+ - uses : actions/setup-python@v5
99
98
with :
100
99
python-version : ${{ matrix.python-version }}
101
100
cache-dependency-path : pyproject.toml
@@ -123,22 +122,14 @@ jobs:
123
122
pip install '.[extra,compiler,test]' -U --upgrade-strategy eager
124
123
pip list
125
124
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
-
132
125
- name : Run tests
133
126
env :
134
127
HF_TOKEN : ${{ secrets.HF_TOKEN }}
135
128
run : pytest -v litgpt/ tests/ --timeout=180 --durations=100
136
129
137
- - name : Show cache after tests
138
- if : always()
130
+ - name : Show cache
139
131
run : |
140
132
pip install -q py-tree
141
- echo "=== Cache contents after tests ==="
142
133
python -m py_tree -d 1 .cache-HF
143
134
144
135
testing-guardian :
0 commit comments