Skip to content

Commit 080c5ac

Browse files
committed
pin ubuntu version to fix coverage CI test
1 parent bd9b412 commit 080c5ac

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
setup:
2626
name: Set up
2727
if: github.repository == 'microsoft/vscode-python'
28-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-22.04
2929
defaults:
3030
run:
3131
shell: python
@@ -61,7 +61,7 @@ jobs:
6161
- os: windows-latest
6262
target: aarch64-pc-windows-msvc
6363
vsix-target: win32-arm64
64-
- os: ubuntu-latest
64+
- os: ubuntu-22.04
6565
target: x86_64-unknown-linux-musl
6666
vsix-target: linux-x64
6767
# - os: ubuntu-latest
@@ -76,7 +76,7 @@ jobs:
7676
# - os: macos-14
7777
# target: aarch64-apple-darwin
7878
# vsix-target: darwin-arm64
79-
- os: ubuntu-latest
79+
- os: ubuntu-22.04
8080
target: x86_64-unknown-linux-musl
8181
vsix-target: alpine-x64
8282
# - os: ubuntu-latest
@@ -112,7 +112,7 @@ jobs:
112112
lint:
113113
name: Lint
114114
if: github.repository == 'microsoft/vscode-python'
115-
runs-on: ubuntu-latest
115+
runs-on: ubuntu-22.04
116116
steps:
117117
- name: Checkout
118118
uses: actions/checkout@v6
@@ -127,7 +127,7 @@ jobs:
127127
check-types:
128128
name: Check Python types
129129
if: github.repository == 'microsoft/vscode-python'
130-
runs-on: ubuntu-latest
130+
runs-on: ubuntu-22.04
131131
steps:
132132
- name: Use Python ${{ env.PYTHON_VERSION }}
133133
uses: actions/setup-python@v6
@@ -172,7 +172,7 @@ jobs:
172172
matrix:
173173
# We're not running CI on macOS for now because it's one less matrix entry to lower the number of runners used,
174174
# macOS runners are expensive, and we assume that Ubuntu is enough to cover the Unix case.
175-
os: [ubuntu-latest, windows-latest]
175+
os: [ubuntu-22.04, windows-latest]
176176
# Run the tests on the oldest and most recent versions of Python.
177177
python: ['3.9', '3.x', '3.13']
178178

@@ -213,7 +213,7 @@ jobs:
213213
# We're not running CI on macOS for now because it's one less matrix
214214
# entry to lower the number of runners used, macOS runners are expensive,
215215
# and we assume that Ubuntu is enough to cover the UNIX case.
216-
os: [ubuntu-latest, windows-latest]
216+
os: [ubuntu-22.04, windows-latest]
217217
python: ['3.x']
218218
test-suite: [ts-unit, venv, single-workspace, multi-workspace, debugger, functional]
219219
steps:
@@ -374,7 +374,7 @@ jobs:
374374
with:
375375
run: npm run testSingleWorkspace
376376
working-directory: ${{ env.special-working-directory }}
377-
if: matrix.test-suite == 'venv' && matrix.os == 'ubuntu-latest'
377+
if: matrix.test-suite == 'venv' && matrix.os == 'ubuntu-22.04'
378378

379379
- name: Run single-workspace tests
380380
env:
@@ -421,7 +421,7 @@ jobs:
421421
include:
422422
- os: windows-latest
423423
vsix-target: win32-x64
424-
- os: ubuntu-latest
424+
- os: ubuntu-22.04
425425
vsix-target: linux-x64
426426

427427
steps:

.github/workflows/pr-check.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- os: windows-latest
3535
target: aarch64-pc-windows-msvc
3636
vsix-target: win32-arm64
37-
- os: ubuntu-latest
37+
- os: ubuntu-22.04
3838
target: x86_64-unknown-linux-musl
3939
vsix-target: linux-x64
4040
# - os: ubuntu-latest
@@ -49,7 +49,7 @@ jobs:
4949
# - os: macos-14
5050
# target: aarch64-apple-darwin
5151
# vsix-target: darwin-arm64
52-
- os: ubuntu-latest
52+
- os: ubuntu-22.04
5353
target: x86_64-unknown-linux-musl
5454
vsix-target: alpine-x64
5555
# - os: ubuntu-latest
@@ -84,7 +84,7 @@ jobs:
8484

8585
lint:
8686
name: Lint
87-
runs-on: ubuntu-latest
87+
runs-on: ubuntu-22.04
8888
steps:
8989
- name: Checkout
9090
uses: actions/checkout@v6
@@ -98,7 +98,7 @@ jobs:
9898

9999
check-types:
100100
name: Check Python types
101-
runs-on: ubuntu-latest
101+
runs-on: ubuntu-22.04
102102
steps:
103103
- name: Use Python ${{ env.PYTHON_VERSION }}
104104
uses: actions/setup-python@v6
@@ -155,7 +155,7 @@ jobs:
155155
matrix:
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.
158-
os: [ubuntu-latest, windows-latest]
158+
os: [ubuntu-22.04, windows-latest]
159159
# Run the tests on the oldest and most recent versions of Python.
160160
python: ['3.9', '3.x', '3.13'] # run for 3 pytest versions, most recent stable, oldest version supported and pre-release
161161
pytest-version: ['pytest', 'pytest@pre-release', 'pytest==6.2.0']
@@ -208,7 +208,7 @@ jobs:
208208
matrix:
209209
# We're not running CI on macOS for now because it's one less matrix entry to lower the number of runners used,
210210
# macOS runners are expensive, and we assume that Ubuntu is enough to cover the Unix case.
211-
os: [ubuntu-latest, windows-latest]
211+
os: [ubuntu-22.04, windows-latest]
212212
# Run the tests on the oldest and most recent versions of Python.
213213
python: ['3.x']
214214
test-suite: [ts-unit, venv, single-workspace, debugger, functional]
@@ -408,7 +408,7 @@ jobs:
408408
matrix:
409409
# We're not running CI on macOS for now because it's one less matrix entry to lower the number of runners used,
410410
# macOS runners are expensive, and we assume that Ubuntu is enough to cover the Unix case.
411-
os: [ubuntu-latest, windows-latest]
411+
os: [ubuntu-22.04, windows-latest]
412412

413413
steps:
414414
- name: Checkout
@@ -446,7 +446,7 @@ jobs:
446446
include:
447447
- os: windows-latest
448448
vsix-target: win32-x64
449-
- os: ubuntu-latest
449+
- os: ubuntu-22.04
450450
vsix-target: linux-x64
451451

452452
steps:
@@ -484,7 +484,7 @@ jobs:
484484
fail-fast: false
485485
matrix:
486486
# Only run coverage on linux for PRs
487-
os: [ubuntu-latest]
487+
os: [ubuntu-22.04]
488488

489489
steps:
490490
- name: Checkout

0 commit comments

Comments
 (0)