@@ -101,7 +101,7 @@ jobs:
101101 runs-on : ubuntu-latest
102102 steps :
103103 - name : Use Python ${{ env.PYTHON_VERSION }}
104- uses : actions/setup-python@v6
104+ uses : actions/setup-python@v7
105105 with :
106106 python-version : ${{ env.PYTHON_VERSION }}
107107
@@ -156,9 +156,9 @@ jobs:
156156 # We're not running CI on macOS for now because it's one less matrix entry to lower the number of runners used,
157157 # macOS runners are expensive, and we assume that Ubuntu is enough to cover the Unix case.
158158 os : [ubuntu-latest, windows-latest]
159- # Run the tests on the oldest and most recent versions of Python.
160- python : ['3.10', '3.x', '3.13'] # run for 3 pytest versions, most recent stable, oldest version supported and pre-release
161- pytest-version : ['pytest', 'pytest@pre-release', 'pytest==6.2.0 ']
159+ python : ['3.10', '3.11', '3.12', '3.13', '3.14']
160+ # Test approximately one year of pytest releases and upcoming pytest changes.
161+ pytest-version : ['pytest==8.4.* ', 'pytest@pre-release']
162162
163163 steps :
164164 - name : Checkout
@@ -168,22 +168,10 @@ jobs:
168168 persist-credentials : false
169169
170170 - name : Use Python ${{ matrix.python }}
171- uses : actions/setup-python@v6
171+ uses : actions/setup-python@v7
172172 with :
173173 python-version : ${{ matrix.python }}
174174
175- - name : Install specific pytest version
176- if : matrix.pytest-version == 'pytest@pre-release'
177- run : |
178- python -m pip install --pre pytest
179-
180- - name : Install specific pytest version
181- if : matrix.pytest-version != 'pytest@pre-release'
182- run : |
183- python -m pip install "${{ matrix.pytest-version }}"
184-
185- - name : Install specific pytest version
186- run : python -m pytest --version
187175 - name : Install base Python requirements
188176 uses : brettcannon/pip-secure-install@92f400e3191171c1858cc0e0d9ac6320173fdb0c # v1.0.0
189177 with :
@@ -193,6 +181,17 @@ jobs:
193181 - name : Install test requirements
194182 run : python -m pip install --upgrade -r build/test-requirements.txt
195183
184+ - name : Install specific pytest version (pre-release)
185+ if : matrix.pytest-version == 'pytest@pre-release'
186+ run : python -m pip install --upgrade --pre pytest
187+
188+ - name : Install specific pytest version
189+ if : matrix.pytest-version != 'pytest@pre-release'
190+ run : python -m pip install --upgrade "${{ matrix.pytest-version }}"
191+
192+ - name : Print pytest version
193+ run : python -m pytest --version
194+
196195 - name : Run Python unit tests
197196 run : python python_files/tests/run_all.py
198197
@@ -233,7 +232,7 @@ jobs:
233232 sparse-checkout-cone-mode : false
234233
235234 - name : Install Node
236- uses : actions/setup-node@v6
235+ uses : actions/setup-node@v7
237236 with :
238237 node-version : ${{ env.NODE_VERSION }}
239238 cache : ' npm'
@@ -249,7 +248,7 @@ jobs:
249248 run : npx @vscode/l10n-dev@latest export ./src
250249
251250 - name : Use Python ${{ matrix.python }}
252- uses : actions/setup-python@v6
251+ uses : actions/setup-python@v7
253252 with :
254253 python-version : ${{ matrix.python }}
255254
@@ -507,7 +506,7 @@ jobs:
507506 sparse-checkout-cone-mode : false
508507
509508 - name : Install Node
510- uses : actions/setup-node@v6
509+ uses : actions/setup-node@v7
511510 with :
512511 node-version : ${{ env.NODE_VERSION }}
513512 cache : ' npm'
@@ -522,7 +521,7 @@ jobs:
522521 run : npx @vscode/l10n-dev@latest export ./src
523522
524523 - name : Use Python ${{ env.PYTHON_VERSION }}
525- uses : actions/setup-python@v6
524+ uses : actions/setup-python@v7
526525 with :
527526 python-version : ${{ env.PYTHON_VERSION }}
528527 cache : ' pip'
0 commit comments