@@ -110,27 +110,31 @@ jobs:
110
110
python-platform : ["Linux", "Windows", "Darwin"]
111
111
python-version : ["3.7", "3.8", "3.9", "3.10", "3.11"]
112
112
fail-fast : false
113
- env :
114
- PYRIGHT_VERSION : 1.1.278 # Must match pyright_test.py.
115
113
steps :
116
114
- uses : actions/checkout@v3
115
+ - name : Get pyright version
116
+ uses : SebRollen/toml-action@v1.0.2
117
+ id : pyright_version
118
+ with :
119
+ file : ' pyproject.toml'
120
+ field : ' tool.typeshed.pyright_version'
117
121
- uses : jakebailey/pyright-action@v1
118
122
with :
119
- version : ${{ env.PYRIGHT_VERSION }}
123
+ version : ${{ steps.pyright_version.outputs.value }}
120
124
python-platform : ${{ matrix.python-platform }}
121
125
python-version : ${{ matrix.python-version }}
122
126
no-comments : ${{ matrix.python-version != '3.10' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
123
127
project : ./pyrightconfig.stricter.json
124
128
- uses : jakebailey/pyright-action@v1
125
129
with :
126
- version : ${{ env.PYRIGHT_VERSION }}
130
+ version : ${{ steps.pyright_version.outputs.value }}
127
131
python-platform : ${{ matrix.python-platform }}
128
132
python-version : ${{ matrix.python-version }}
129
133
no-comments : ${{ matrix.python-version != '3.10' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
130
134
project : ./pyrightconfig.testcases.json
131
135
- uses : jakebailey/pyright-action@v1
132
136
with :
133
- version : ${{ env.PYRIGHT_VERSION }}
137
+ version : ${{ steps.pyright_version.outputs.value }}
134
138
python-platform : ${{ matrix.python-platform }}
135
139
python-version : ${{ matrix.python-version }}
136
140
no-comments : ${{ matrix.python-version != '3.10' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
0 commit comments