File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 19
19
- name : Cache hf_home
20
20
uses : actions/cache@v3
21
21
with :
22
- path : hf_home
23
- key : hf_home
22
+ path : ${{ github.workspace }}/hf_home
23
+ key : ${{ runner.os }}-hf_home-${{ hashFiles('**/requirements.txt', '**/setup.py') }}
24
+ - name : Cache venv
25
+ uses : actions/cache@v3
26
+ with :
27
+ path : ${{ github.workspace }}/.venv
28
+ key : ${{ runner.os }}-venv-${{ hashFiles('**/requirements.txt', '**/setup.py') }}
24
29
- uses : actions/checkout@v4
25
30
- name : Set up Python 3.10
26
31
uses : actions/setup-python@v3
30
35
31
36
- name : Install dependencies
32
37
run : |
38
+ python -m venv ${{ github.workspace }}/.venv
39
+ source ${{ github.workspace }}/.venv/bin/activate
40
+ pip install --upgrade pip
33
41
pip install -r requirements.txt
34
42
pip install .
35
43
- name : Run linters
38
46
make linters
39
47
- name : Run tests
40
48
run : |
49
+ source ${{ github.workspace }}/.venv/bin/activate
41
50
export HF_HOME="${{ github.workspace }} /hf_home"
42
51
echo "$HF_HOME"
43
52
mkdir -p "$HF_HOME"
You can’t perform that action at this time.
0 commit comments