@@ -158,10 +158,10 @@ jobs:
158
158
echo "Installing packages: $DEPENDENCIES"
159
159
pip install $DEPENDENCIES
160
160
fi
161
+ - name : Activate the isolated venv for the rest of the job
162
+ run : echo "$PWD/.venv/bin" >> $GITHUB_PATH
161
163
- name : List 3rd-party stub dependencies installed
162
- run : |
163
- source .venv/bin/activate
164
- pip freeze --all
164
+ run : pip freeze --all
165
165
- name : Get pyright version
166
166
167
167
id : pyright_version
@@ -175,15 +175,13 @@ jobs:
175
175
python-platform : ${{ matrix.python-platform }}
176
176
python-version : ${{ matrix.python-version }}
177
177
no-comments : ${{ matrix.python-version != '3.10' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
178
- extra-args : " --pythonpath=.venv/bin/python"
179
178
- name : Run pyright with stricter settings on some of the stubs
180
179
uses : jakebailey/pyright-action@v1
181
180
with :
182
181
version : ${{ steps.pyright_version.outputs.value }}
183
182
python-platform : ${{ matrix.python-platform }}
184
183
python-version : ${{ matrix.python-version }}
185
184
no-comments : ${{ matrix.python-version != '3.10' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
186
- extra-args : " --pythonpath=.venv/bin/python"
187
185
project : ./pyrightconfig.stricter.json
188
186
- name : Run pyright on the test cases
189
187
uses : jakebailey/pyright-action@v1
@@ -192,7 +190,6 @@ jobs:
192
190
python-platform : ${{ matrix.python-platform }}
193
191
python-version : ${{ matrix.python-version }}
194
192
no-comments : ${{ matrix.python-version != '3.10' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
195
- extra-args : " --pythonpath=.venv/bin/python"
196
193
project : ./pyrightconfig.testcases.json
197
194
198
195
stub-uploader :
0 commit comments