@@ -110,27 +110,31 @@ jobs:
110110 python-platform : ["Linux", "Windows", "Darwin"]
111111 python-version : ["3.7", "3.8", "3.9", "3.10", "3.11"]
112112 fail-fast : false
113- env :
114- PYRIGHT_VERSION : 1.1.278 # Must match pyright_test.py.
115113 steps :
116114 - uses : actions/checkout@v3
115+ - name : Get pyright version
116+ 117+ id : pyright_version
118+ with :
119+ file : ' pyproject.toml'
120+ field : ' tool.typeshed.pyright_version'
117121 - uses : jakebailey/pyright-action@v1
118122 with :
119- version : ${{ env.PYRIGHT_VERSION }}
123+ version : ${{ steps.pyright_version.outputs.value }}
120124 python-platform : ${{ matrix.python-platform }}
121125 python-version : ${{ matrix.python-version }}
122126 no-comments : ${{ matrix.python-version != '3.10' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
123127 project : ./pyrightconfig.stricter.json
124128 - uses : jakebailey/pyright-action@v1
125129 with :
126- version : ${{ env.PYRIGHT_VERSION }}
130+ version : ${{ steps.pyright_version.outputs.value }}
127131 python-platform : ${{ matrix.python-platform }}
128132 python-version : ${{ matrix.python-version }}
129133 no-comments : ${{ matrix.python-version != '3.10' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
130134 project : ./pyrightconfig.testcases.json
131135 - uses : jakebailey/pyright-action@v1
132136 with :
133- version : ${{ env.PYRIGHT_VERSION }}
137+ version : ${{ steps.pyright_version.outputs.value }}
134138 python-platform : ${{ matrix.python-platform }}
135139 python-version : ${{ matrix.python-version }}
136140 no-comments : ${{ matrix.python-version != '3.10' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
0 commit comments