@@ -130,30 +130,30 @@ jobs:
130
130
- name : List 3rd-party stub dependencies installed
131
131
run : uv pip freeze
132
132
- name : Get pyright version
133
-
134
133
id : pyright_version
135
- with :
136
- file : " pyproject.toml"
137
- field : " tool.typeshed.pyright_version"
134
+ run : |
135
+ PYRIGHT_VERSION=$(grep pyright== requirements-tests.txt | cut -d "#" -f 1 | cut -d \; -f 1 | cut -d = -f 3)
136
+ echo pyright version: "${PYRIGHT_VERSION}"
137
+ echo PYRIGHT_VERSION="${PYRIGHT_VERSION}" >> "${GITHUB_OUTPUT}"
138
138
- name : Run pyright with basic settings on all the stubs
139
139
uses : jakebailey/pyright-action@v2
140
140
with :
141
- version : ${{ steps.pyright_version.outputs.value }}
141
+ version : ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
142
142
python-platform : ${{ matrix.python-platform }}
143
143
python-version : ${{ matrix.python-version }}
144
144
annotate : ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
145
145
- name : Run pyright with stricter settings on some of the stubs
146
146
uses : jakebailey/pyright-action@v2
147
147
with :
148
- version : ${{ steps.pyright_version.outputs.value }}
148
+ version : ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
149
149
python-platform : ${{ matrix.python-platform }}
150
150
python-version : ${{ matrix.python-version }}
151
151
annotate : ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
152
152
project : ./pyrightconfig.stricter.json
153
153
- name : Run pyright on the test cases
154
154
uses : jakebailey/pyright-action@v2
155
155
with :
156
- version : ${{ steps.pyright_version.outputs.value }}
156
+ version : ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
157
157
python-platform : ${{ matrix.python-platform }}
158
158
python-version : ${{ matrix.python-version }}
159
159
annotate : ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
0 commit comments