@@ -130,30 +130,30 @@ jobs:
130130 - name : List 3rd-party stub dependencies installed
131131 run : uv pip freeze
132132 - name : Get pyright version
133- 134133 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}"
138138 - name : Run pyright with basic settings on all the stubs
139139 uses : jakebailey/pyright-action@v2
140140 with :
141- version : ${{ steps.pyright_version.outputs.value }}
141+ version : ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
142142 python-platform : ${{ matrix.python-platform }}
143143 python-version : ${{ matrix.python-version }}
144144 annotate : ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
145145 - name : Run pyright with stricter settings on some of the stubs
146146 uses : jakebailey/pyright-action@v2
147147 with :
148- version : ${{ steps.pyright_version.outputs.value }}
148+ version : ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
149149 python-platform : ${{ matrix.python-platform }}
150150 python-version : ${{ matrix.python-version }}
151151 annotate : ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
152152 project : ./pyrightconfig.stricter.json
153153 - name : Run pyright on the test cases
154154 uses : jakebailey/pyright-action@v2
155155 with :
156- version : ${{ steps.pyright_version.outputs.value }}
156+ version : ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
157157 python-platform : ${{ matrix.python-platform }}
158158 python-version : ${{ matrix.python-version }}
159159 annotate : ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
0 commit comments