@@ -29,19 +29,19 @@ jobs:
29
29
- uses : actions/checkout@v4
30
30
- uses : actions/setup-python@v5
31
31
with :
32
- python-version : " 3.12 "
32
+ python-version : " 3.13 "
33
33
- run : curl -LsSf https://astral.sh/uv/install.sh | sh
34
34
- run : uv pip install -r requirements-tests.txt --system
35
35
- run : python ./tests/check_typeshed_structure.py
36
36
37
37
pytype :
38
- name : Run pytype against the stubs
38
+ name : " pytype: Check stubs"
39
39
runs-on : ubuntu-latest
40
40
steps :
41
41
- uses : actions/checkout@v4
42
42
- uses : actions/setup-python@v5
43
43
with :
44
- # Max supported Python version as of pytype 2024.9.13
44
+ # Max supported Python version as of pytype 2024.10.11
45
45
python-version : " 3.12"
46
46
- uses : astral-sh/setup-uv@v5
47
47
- run : uv pip install -r requirements-tests.txt --system
56
56
- run : ./tests/pytype_test.py --print-stderr
57
57
58
58
mypy :
59
- name : Run mypy against the stubs
59
+ name : " mypy: Check stubs"
60
60
runs-on : ubuntu-latest
61
61
strategy :
62
62
matrix :
73
73
- run : python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }}
74
74
75
75
regression-tests :
76
- name : Run mypy on the test cases
76
+ name : " mypy: Run test cases"
77
77
runs-on : ubuntu-latest
78
78
steps :
79
79
- uses : actions/checkout@v4
87
87
- run : python ./tests/regr_test.py --all --verbosity QUIET
88
88
89
89
pyright :
90
- name : Test typeshed with pyright
90
+ name : " pyright: Run test cases "
91
91
runs-on : ubuntu-latest
92
92
strategy :
93
93
matrix :
98
98
- uses : actions/checkout@v4
99
99
- uses : actions/setup-python@v5
100
100
with :
101
- python-version : " 3.12 "
101
+ python-version : " 3.13 "
102
102
- uses : astral-sh/setup-uv@v5
103
103
- name : Install typeshed test-suite requirements
104
104
# Install these so we can run `get_external_stub_requirements.py`
@@ -110,9 +110,6 @@ jobs:
110
110
DEPENDENCIES=$( python tests/get_external_stub_requirements.py )
111
111
if [ -n "$DEPENDENCIES" ]; then
112
112
printf "Installing packages:\n $(echo $DEPENDENCIES | sed 's/ /\n /g')\n"
113
- # TODO: We need to specify the platform here, but the platforms
114
- # strings supported by uv are different from the ones supported by
115
- # pyright.
116
113
uv pip install --python-version ${{ matrix.python-version }} $DEPENDENCIES
117
114
fi
118
115
- name : Activate the isolated venv for the rest of the job
@@ -125,26 +122,26 @@ jobs:
125
122
version : PATH
126
123
python-platform : ${{ matrix.python-platform }}
127
124
python-version : ${{ matrix.python-version }}
128
- annotate : ${{ matrix.python-version == '3.12 ' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
125
+ annotate : ${{ matrix.python-version == '3.13 ' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
129
126
- name : Run pyright with stricter settings on some of the stubs
130
127
uses : jakebailey/pyright-action@v2
131
128
with :
132
129
version : PATH
133
130
python-platform : ${{ matrix.python-platform }}
134
131
python-version : ${{ matrix.python-version }}
135
- annotate : ${{ matrix.python-version == '3.12 ' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
132
+ annotate : ${{ matrix.python-version == '3.13 ' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
136
133
project : ./pyrightconfig.stricter.json
137
134
- name : Run pyright on the test cases
138
135
uses : jakebailey/pyright-action@v2
139
136
with :
140
137
version : PATH
141
138
python-platform : ${{ matrix.python-platform }}
142
139
python-version : ${{ matrix.python-version }}
143
- annotate : ${{ matrix.python-version == '3.12 ' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
140
+ annotate : ${{ matrix.python-version == '3.13 ' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
144
141
project : ./pyrightconfig.testcases.json
145
142
146
143
stub-uploader :
147
- name : Run the stub_uploader tests
144
+ name : stub_uploader tests
148
145
runs-on : ubuntu-latest
149
146
steps :
150
147
- name : Checkout typeshed
@@ -158,7 +155,8 @@ jobs:
158
155
path : stub_uploader
159
156
- uses : actions/setup-python@v5
160
157
with :
161
- python-version : " 3.12"
158
+ # Keep in sync with stub_uploader's check_scripts.yml workflow.
159
+ python-version : " 3.13"
162
160
- uses : astral-sh/setup-uv@v5
163
161
- name : Run tests
164
162
run : |
0 commit comments