File tree Expand file tree Collapse file tree 6 files changed +33
-5
lines changed Expand file tree Collapse file tree 6 files changed +33
-5
lines changed Original file line number Diff line number Diff line change 38
38
uses : actions/setup-python@v4
39
39
with :
40
40
python-version : ${{ matrix.python-version }}
41
- - name : Update pip
42
- run : python -m pip install -U pip
41
+ cache : pip
42
+ cache-dependency-path : requirements-tests.txt
43
43
- name : Install dependencies
44
44
run : pip install $(grep tomli== requirements-tests.txt) $(grep mypy== requirements-tests.txt)
45
45
- name : Run stubtest
59
59
- uses : actions/setup-python@v4
60
60
with :
61
61
python-version : " 3.9"
62
+ cache : pip
63
+ cache-dependency-path : |
64
+ requirements-tests.txt
65
+ stubs/**/@tests/requirements-stubtest.txt
66
+ stubs/**/METADATA.toml
62
67
- name : Install dependencies
63
68
run : pip install -r requirements-tests.txt
64
69
- name : Run stubtest
90
95
- uses : actions/setup-python@v4
91
96
with :
92
97
python-version : " 3.10"
98
+ cache : pip
99
+ cache-dependency-path : stub_uploader/requirements.txt
93
100
- name : Run tests
94
101
run : |
95
102
cd stub_uploader
Original file line number Diff line number Diff line change 24
24
- uses : actions/setup-python@v4
25
25
with :
26
26
python-version : " 3.10"
27
+ cache : pip
28
+ cache-dependency-path : requirements-tests.txt
27
29
- name : git config
28
30
run : |
29
31
git config --global user.name stubsabot
Original file line number Diff line number Diff line change 39
39
uses : actions/setup-python@v4
40
40
with :
41
41
python-version : ${{ matrix.python-version }}
42
- - name : Update pip
43
- run : python -m pip install -U pip
42
+ cache : pip
43
+ cache-dependency-path : requirements-tests.txt
44
44
- name : Install dependencies
45
45
run : pip install $(grep mypy== requirements-tests.txt)
46
46
- name : Run stubtest
Original file line number Diff line number Diff line change 35
35
- uses : actions/setup-python@v4
36
36
with :
37
37
python-version : " 3.9"
38
+ cache : pip
39
+ cache-dependency-path : |
40
+ requirements-tests.txt
41
+ stubs/**/@tests/requirements-stubtest.txt
42
+ stubs/**/METADATA.toml
38
43
- name : Install dependencies
39
44
run : pip install -r requirements-tests.txt
40
45
- name : Run stubtest
Original file line number Diff line number Diff line change 29
29
- uses : actions/setup-python@v4
30
30
with :
31
31
python-version : " 3.10"
32
+ cache : pip
33
+ cache-dependency-path : requirements-tests.txt
32
34
- run : pip install -r requirements-tests.txt
33
35
- run : ./tests/check_consistent.py
34
36
50
52
- uses : actions/setup-python@v4
51
53
with :
52
54
python-version : " 3.10"
55
+ cache : pip
56
+ cache-dependency-path : requirements-tests.txt
53
57
- run : pip install -r requirements-tests.txt
54
58
- run : flake8
55
59
61
65
- uses : actions/setup-python@v4
62
66
with :
63
67
python-version : " 3.10"
68
+ cache : pip
69
+ cache-dependency-path : requirements-tests.txt
64
70
- run : pip install -r requirements-tests.txt
65
71
- run : ./tests/pytype_test.py --print-stderr
66
72
77
83
- uses : actions/setup-python@v4
78
84
with :
79
85
python-version : " 3.10"
86
+ cache : pip
87
+ cache-dependency-path : requirements-tests.txt
80
88
- run : pip install -r requirements-tests.txt
81
89
- run : python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }}
82
90
88
96
- uses : actions/setup-python@v4
89
97
with :
90
98
python-version : " 3.10"
99
+ cache : pip
100
+ cache-dependency-path : requirements-tests.txt
91
101
- run : pip install -r requirements-tests.txt
92
102
- run : python ./tests/regr_test.py --all
93
103
@@ -141,6 +151,8 @@ jobs:
141
151
- uses : actions/setup-python@v4
142
152
with :
143
153
python-version : " 3.10"
154
+ cache : pip
155
+ cache-dependency-path : stub_uploader/requirements.txt
144
156
- name : Run tests
145
157
run : |
146
158
cd stub_uploader
Original file line number Diff line number Diff line change 34
34
- uses : actions/checkout@v3
35
35
- uses : actions/setup-python@v4
36
36
with :
37
- python-version : 3.9
37
+ python-version : " 3.9"
38
+ cache : pip
39
+ cache-dependency-path : requirements-tests.txt
38
40
- run : pip install -r requirements-tests.txt
39
41
- run : python ./tests/typecheck_typeshed.py --platform=${{ matrix.platform }}
You can’t perform that action at this time.
0 commit comments