Skip to content

Commit 4f8a4bd

Browse files
authored
Remove 2.7 runs from CI (#19054)
1 parent 111e58c commit 4f8a4bd

File tree

2 files changed

+7
-22
lines changed

2 files changed

+7
-22
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
# entry to lower the number of runners used, macOS runners are expensive,
120120
# and we assume that Ubuntu is enough to cover the UNIX case.
121121
os: [ubuntu-latest, windows-latest]
122-
python: ['2.7', '3.x']
122+
python: ['3.x']
123123
test-suite: [ts-unit, python-unit, venv, single-workspace, multi-workspace, debugger, functional]
124124
steps:
125125
- name: Checkout
@@ -173,13 +173,7 @@ jobs:
173173
python -m pip --disable-pip-version-check install -r build/debugger-install-requirements.txt
174174
python ./pythonFiles/install_debugpy.py
175175
shell: bash
176-
if: matrix.test-suite == 'debugger' && matrix.python != 2.7
177-
178-
- name: Install debugpy wheel (Python 2.7)
179-
run: |
180-
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
181-
shell: bash
182-
if: matrix.test-suite == 'debugger' && matrix.python == 2.7
176+
if: matrix.test-suite == 'debugger'
183177

184178
- name: Install functional test requirements
185179
run: python -m pip install --upgrade -r ./build/functional-test-requirements.txt
@@ -190,7 +184,7 @@ jobs:
190184
TEST_FILES_SUFFIX: testvirtualenvs
191185
PYTHON_VIRTUAL_ENVS_LOCATION: './src/tmp/envPaths.json'
192186
shell: pwsh
193-
if: matrix.test-suite == 'venv' && matrix.python != 2.7
187+
if: matrix.test-suite == 'venv'
194188
run: |
195189
python -m pip install pipenv
196190
python -m pipenv run python ./build/ci/addEnvPath.py ${{ env.PYTHON_VIRTUAL_ENVS_LOCATION }} pipenvPath

.github/workflows/pr-check.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,9 @@ jobs:
9494
# macOS runners are expensive, and we assume that Ubuntu is enough to cover the Unix case.
9595
os: [ubuntu-latest, windows-latest]
9696
# Run the tests on the oldest and most recent versions of Python.
97-
python: ['2.7', '3.x']
97+
python: ['3.x']
9898
test-suite: [ts-unit, python-unit, venv, single-workspace, debugger, functional]
99-
exclude:
100-
# For fast PR turn-around, skip 2.7 under Windows.
101-
- os: windows-latest
102-
python: '2.7'
99+
103100
steps:
104101
- name: Checkout
105102
uses: actions/checkout@v3
@@ -152,13 +149,7 @@ jobs:
152149
python -m pip --disable-pip-version-check install -r build/debugger-install-requirements.txt
153150
python ./pythonFiles/install_debugpy.py
154151
shell: bash
155-
if: matrix.test-suite == 'debugger' && matrix.python != 2.7
156-
157-
- name: Install debugpy wheel (Python 2.7)
158-
run: |
159-
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
160-
shell: bash
161-
if: matrix.test-suite == 'debugger' && matrix.python == 2.7
152+
if: matrix.test-suite == 'debugger'
162153

163154
- name: Install functional test requirements
164155
run: python -m pip install --upgrade -r ./build/functional-test-requirements.txt
@@ -169,7 +160,7 @@ jobs:
169160
TEST_FILES_SUFFIX: testvirtualenvs
170161
PYTHON_VIRTUAL_ENVS_LOCATION: './src/tmp/envPaths.json'
171162
shell: pwsh
172-
if: matrix.test-suite == 'venv' && matrix.python != 2.7
163+
if: matrix.test-suite == 'venv'
173164
run: |
174165
python -m pip install pipenv
175166
python -m pipenv run python ./build/ci/addEnvPath.py ${{ env.PYTHON_VIRTUAL_ENVS_LOCATION }} pipenvPath

0 commit comments

Comments
 (0)