Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3542bca

Browse filesBrowse files
Add warning for python 2.7 on release/v3 (actions#674)
* add warning * npm run format * remove ubuntu-18.04
1 parent 48e4ac7 commit 3542bca
Copy full SHA for 3542bca

File tree

Expand file treeCollapse file tree

4 files changed

+12
-4
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+12
-4
lines changed

‎.github/workflows/test-pypy.yml

Copy file name to clipboardExpand all lines: .github/workflows/test-pypy.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-latest]
21+
os: [macos-latest, windows-latest, ubuntu-latest]
2222
pypy:
2323
- 'pypy-2.7'
2424
- 'pypy-3.7'

‎.github/workflows/test-python.yml

Copy file name to clipboardExpand all lines: .github/workflows/test-python.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04]
21+
os: [macos-latest, windows-latest, ubuntu-20.04]
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v2
@@ -38,7 +38,7 @@ jobs:
3838
strategy:
3939
fail-fast: false
4040
matrix:
41-
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04]
41+
os: [macos-latest, windows-latest, ubuntu-20.04]
4242
python: [3.5.4, 3.6.7, 3.7.5, 3.8.1]
4343
steps:
4444
- name: Checkout
@@ -68,7 +68,7 @@ jobs:
6868
strategy:
6969
fail-fast: false
7070
matrix:
71-
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04]
71+
os: [macos-latest, windows-latest, ubuntu-20.04]
7272
steps:
7373
- name: Checkout
7474
uses: actions/checkout@v2

‎dist/setup/index.js

Copy file name to clipboardExpand all lines: dist/setup/index.js
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6479,6 +6479,9 @@ function run() {
64796479
core.info(`Successfully setup PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`);
64806480
}
64816481
else {
6482+
if (version.trim().startsWith('2')) {
6483+
core.warning('The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672');
6484+
}
64826485
const installed = yield finder.useCpythonVersion(version, arch);
64836486
pythonVersion = installed.version;
64846487
core.info(`Successfully setup ${installed.impl} (${pythonVersion})`);

‎src/setup-python.ts

Copy file name to clipboardExpand all lines: src/setup-python.ts
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ async function run() {
3434
`Successfully setup PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`
3535
);
3636
} else {
37+
if (version.trim().startsWith('2')) {
38+
core.warning(
39+
'The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672'
40+
);
41+
}
3742
const installed = await finder.useCpythonVersion(version, arch);
3843
pythonVersion = installed.version;
3944
core.info(`Successfully setup ${installed.impl} (${pythonVersion})`);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.