File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 61
61
version : PATH
62
62
python-platform : ${{ matrix.python-platform }}
63
63
python-version : " 3.9" # Oldest version supported for running scripts and tests
64
+ extra-args : --threads
64
65
project : ./pyrightconfig.scripts_and_tests.json
65
66
stubsabot-dry-run :
66
67
name : Stubsabot dry run
Original file line number Diff line number Diff line change @@ -145,13 +145,15 @@ jobs:
145
145
version : PATH
146
146
python-platform : ${{ matrix.python-platform }}
147
147
python-version : ${{ matrix.python-version }}
148
+ extra-args : --threads
148
149
annotate : ${{ matrix.python-version == '3.12' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
149
150
- name : Run pyright with stricter settings on some of the stubs
150
151
uses : jakebailey/pyright-action@v2
151
152
with :
152
153
version : PATH
153
154
python-platform : ${{ matrix.python-platform }}
154
155
python-version : ${{ matrix.python-version }}
156
+ extra-args : --threads
155
157
annotate : ${{ matrix.python-version == '3.12' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
156
158
project : ./pyrightconfig.stricter.json
157
159
- name : Run pyright on the test cases
@@ -160,6 +162,7 @@ jobs:
160
162
version : PATH
161
163
python-platform : ${{ matrix.python-platform }}
162
164
python-version : ${{ matrix.python-version }}
165
+ extra-args : --threads
163
166
annotate : ${{ matrix.python-version == '3.12' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
164
167
project : ./pyrightconfig.testcases.json
165
168
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def main() -> None:
37
37
# version installed into the virtual environment, due to failures on some
38
38
# platforms. https://github.com/python/typeshed/issues/11614
39
39
os .environ ["PYRIGHT_PYTHON_FORCE_VERSION" ] = pyright_version
40
- command = [npx , f"pyright@{ pyright_version } " ] + sys .argv [1 :]
40
+ command = [npx , f"pyright@{ pyright_version } " ] + sys .argv [1 :] + [ "--threads" ]
41
41
print_command (command )
42
42
43
43
ret = subprocess .run (command ).returncode
You can’t perform that action at this time.
0 commit comments