File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 22
22
strategy :
23
23
fail-fast : false
24
24
matrix :
25
- python-version :
25
+ python :
26
26
- " 3.9"
27
27
- " 3.10"
28
28
- " 3.11"
34
34
35
35
runs-on : ${{ matrix.os }}
36
36
37
+ concurrency :
38
+ group : ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.python }}
39
+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
40
+
37
41
env :
38
42
HF_TOKEN : ${{ secrets.HF_TOKEN }}
39
43
OS_NAME : ${{ matrix.os }}
45
49
- name : Set up Python
46
50
uses : actions/setup-python@v5
47
51
with :
48
- python-version : ${{ matrix.python-version }}
52
+ python-version : ${{ matrix.python }}
49
53
cache : " pip"
50
54
cache-dependency-path : " setup.py"
51
55
54
58
python -m pip install --upgrade pip
55
59
python -m pip install ".[torch,dev]"
56
60
61
+ - name : Cache files
62
+ uses : actions/cache@v4
63
+ with :
64
+ path : ${{ runner.temp }}/huggingface
65
+ key : huggingface-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('tests/version.txt') }}
66
+
57
67
- name : Check quality
58
68
run : |
59
69
make style && make quality
64
74
65
75
- name : Test with pytest
66
76
run : |
77
+ export HF_HOME=${{ runner.temp }}/huggingface
67
78
make test
Original file line number Diff line number Diff line change 20
20
21
21
22
22
def main ():
23
- path_list = []
23
+ path_list : list [ Path ] = []
24
24
for check_dir in sys .argv [1 :]:
25
25
path_list .extend (Path (check_dir ).glob ("**/*.py" ))
26
26
Original file line number Diff line number Diff line change
1
+ 0.9.3.100
You can’t perform that action at this time.
0 commit comments